HappyDoc Generated Documentation | Class: profile_dialog
--- | ---
/ wifi-radar.py / profile_dialog Edit and return an AP profile.
Methods |
--- | ---
| get_array_index
--- | ---
    get_array_index (
            self,
            item,
            array,
            )
Return the index where item matches a cell in array. #### Parameters: `item` string - Item to find in array `array` list - List in which to find match. #### Returns: integer - 0 (no match) or higher (index of match)
| toggle_roaming
--- | ---
    toggle_roaming (
            self,
            roaming_toggle,
            data=None,
            )
Respond to roaming checkbox toggle by activating/de-activating the BSSID text entry. #### Parameters: `roaming_toggle` gtk.CheckButton - The checkbox sending the signal. `data` tuple - list of arbitrary arguments (not used) #### Returns: nothing
| run
--- | ---
    run ( self )
Display profile dialog, operate until canceled or okayed, and, possibly, return edited profile values. #### Parameters: nothing #### Returns: dictionary or None a profile, or None on cancel #### NOTES: Raises ValueError if an attempt is made to save an ESSID with no name.
Exceptions |
--- | ---
ValueError
| toggle_use_dhcp
--- | ---
    toggle_use_dhcp (
            self,
            widget,
            data=None,
            )
Respond to expanding/hiding IP segment. #### Parameters: `widget` gtk.Widget - The widget sending the event. `data` tuple - List of arbitrary arguments (not used) #### Returns: nothing
| toggle_use_wpa
--- | ---
    toggle_use_wpa (
            self,
            widget,
            data=None,
            )
Respond to expanding/hiding WPA segment. #### Parameters: `widget` gtk.Widget - The widget sending the event. `data` tuple - List of arbitrary arguments (not used) #### Returns: nothing
| destroy
--- | ---
    destroy ( self )
Remove profile dialog. #### Parameters: nothing #### Returns: nothing
| __init__
--- | ---
    __init__ (
            self,
            parent,
            profile,
            )
Create a new profile_dialog. #### Parameters: `parent` gtk.Object - Usually, the calling window. `profile` dictionary - The profile to edit. May be mostly-empty default profile. #### Returns: profile_dialog instance
| get_array_item
--- | ---
    get_array_item (
            self,
            index,
            array,
            )
Return the value in array[ index ] #### Parameters: `index` integer - The index to look up. `array` list - List in which to look up value. #### Returns: string empty string (no match) or looked up value

This document was automatically generated Thu May 21 05:32:36 2009 by HappyDoc version 3.1