Logo Search packages:      
Sourcecode: nagstamon version File versions  Download package

def Nagstamon::nagstamonGUI::EditServer::ToggleProxyAddress (   self,
  widget = None 
)

    toggle proxy address options when not using proxy is enabled

Definition at line 2139 of file nagstamonGUI.py.

02139                                              :
        """
            toggle proxy address options when not using proxy is enabled
        """
        use_proxy = self.glade.get_widget("input_checkbutton_use_proxy")
        use_proxy_from_os = self.glade.get_widget("input_checkbutton_use_proxy_from_os")
        # depending on checkbox state address fields wil be active
        if use_proxy.get_active() == True:
            # always the opposite of os proxy selection
            state = not use_proxy_from_os.get_active()
        else:
            state = False

        for n in ("label_proxy_address",
                    "input_entry_proxy_address",
                    "label_proxy_username",
                    "input_entry_proxy_username",
                    "label_proxy_password",
                    "input_entry_proxy_password"):
            item = self.glade.get_widget(n)
            item.set_sensitive(state)
            
        


Generated by  Doxygen 1.6.0   Back to index