photons.network module

QDialogs for starting a Network Manager or a Service, or, connecting to a Manager as a Client.

class photons.network.ClientServiceDialog(parent, widget)[source]

Bases: QDialog

Connect to a Manager as either a Client or as a Service.

Parameters:
  • parent (MainWindow) – The parent widget.

  • widget (QWidget) – The widget to add to the first row of the QFormLayout.

check_hostname()[source]

Check the hostname of the Manager.

Return type:

bool

on_connect_clicked()[source]

Connect to a Manager.

Return type:

None

prompt_authentication()[source]

Prompt the user for the authentication credentials (if required).

Return type:

tuple[str | None, str | None, str | None]

Returns:

The username, the password for username, the password for the Manager.

class photons.network.CreateClient(parent)[source]

Bases: ClientServiceDialog

Connect to a Manager as a Client.

Parameters:

parent (MainWindow) – The parent widget.

on_connect_clicked()[source]

Connect to a Manager.

Return type:

None

class photons.network.StartEquipmentService(parent)[source]

Bases: ClientServiceDialog

Start a Service that interfaces with equipment.

The Service will be running on localhost, but the Manager can be running on a remote computer.

Parameters:

parent (MainWindow) – The parent widget.

on_connect_clicked()[source]

Connect to a Manager.

Return type:

None

class photons.network.StartManager(parent)[source]

Bases: QDialog

Start a Network Manager on localhost.

Parameters:

parent (MainWindow) – The parent widget.

on_start_clicked()[source]

Start a Manager.

Return type:

None

class photons.network.StartService(parent)[source]

Bases: ClientServiceDialog

Start a Service.

The Service will be running on localhost, but the Manager can be running on a remote computer.

Parameters:

parent (MainWindow) – The parent widget.

on_connect_clicked()[source]

Connect to a Manager.

Return type:

None