NMA4.WifiDialog

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Native Gtk.Native GObject.GInterface->Gtk.Native Gtk.Root Gtk.Root GObject.GInterface->Gtk.Root Gtk.ShortcutManager Gtk.ShortcutManager GObject.GInterface->Gtk.ShortcutManager GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Dialog Gtk.Dialog NMA4.WifiDialog NMA4.WifiDialog Gtk.Dialog->NMA4.WifiDialog Gtk.Window Gtk.Window Gtk.Native->Gtk.Window Gtk.Root->Gtk.Window Gtk.ShortcutManager->Gtk.Window Gtk.Widget->Gtk.Window Gtk.Window->Gtk.Dialog

Subclasses:

None

Methods

Inherited:

Gtk.Dialog (11), Gtk.Window (62), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6), Gtk.Root (3)

Structs:

Gtk.WidgetClass (18), 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.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.ShortcutManager (2)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (25), Gtk.Widget (34), Gtk.Accessible (1)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Dialog

r

Class Details

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

Gtk.Dialog

Abstract:

No

Structure:

NMA4.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 NMA4.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) –