NMA.WifiDialog

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Dialog Gtk.Dialog NMA.WifiDialog NMA.WifiDialog Gtk.Dialog->NMA.WifiDialog Gtk.Widget->Gtk.Container Gtk.Window->Gtk.Dialog

Subclasses:

None

Methods

Inherited:

Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (client, connection, device, ap, secrets_only)

class

new_for_create (client)

class

new_for_hidden (client)

class

new_for_other (client)

class

new_for_secrets (client, connection, secrets_setting_name, secrets_hints)

get_connection ()

get_nag_ignored ()

nag_user ()

set_nag_ignored (ignored)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Dialog (4), Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Dialog

r

Class Details

class NMA.WifiDialog(*args, **kwargs)
Bases:

Gtk.Dialog

Abstract:

No

Structure:

NMA.WifiDialogClass

classmethod new(client, connection, device, ap, secrets_only)
Parameters:
  • client (NM.Client) – client to retrieve list of devices or connections from

  • connection (NM.Connection) – connection to be shown/edited or None

  • device (NM.Device) – device to check connection compatibility against

  • ap (NM.AccessPoint) – AP to check connection compatibility against

  • secrets_only (bool) – whether to only ask for secrets for given connection

Returns:

the dialog widget or None in case of error

Return type:

Gtk.Widget

Creates a wifi connection dialog and populates it with settings from connection if given. If device is not given a device selection combo box will be included. If connection is not given a connection selection combo box will be included. If secrets_only is False a complete connection creator/editor dialog is returned, otherwise only wifi security secrets relevant to the security settings in connection are going to be shown and will be editable.

classmethod new_for_create(client)
Parameters:

client (NM.Client) –

Return type:

Gtk.Widget

classmethod new_for_hidden(client)
Parameters:

client (NM.Client) –

Return type:

Gtk.Widget

classmethod new_for_other(client)
Parameters:

client (NM.Client) –

Return type:

Gtk.Widget

classmethod new_for_secrets(client, connection, secrets_setting_name, secrets_hints)
Parameters:
  • client (NM.Client) – client to retrieve list of devices or connections from

  • connection (NM.Connection) – connection for which secrets are requested

  • secrets_setting_name (str) – setting name whose secrets are requested or None

  • secrets_hints (str) – array of setting key names within the setting given in secrets_setting_name which are requested or None

Returns:

the dialog widget or None in case of error

Return type:

Gtk.Widget

Creates a wifi secrets dialog and populates it with setting values from connection. If secrets_setting_name and secrets_hints are not given this function creates an identical dialog as NMA.WifiDialog.new() would create with the secrets_only parameter True. Otherwise secrets_setting_name and secrets_hints determine the list of specific secrets that are being requested from the user and no editable entries are shown for any other settings.

Note: only a subset of all settings and setting keys is supported as secrets_setting_name and secrets_hints.

get_connection()
Return type:

(NM.Connection, device: NM.Device, ap: NM.AccessPoint)

get_nag_ignored()
Return type:

bool

nag_user()
Return type:

Gtk.Widget

set_nag_ignored(ignored)
Parameters:

ignored (bool) –