Logo Search packages:      
Sourcecode: ibus-sunpinyin version File versions  Download package

def main::MainWindow::__update_enabling_button (   self,
  checkbox_name,
  button_name 
) [private]
enable a setup button when checked, disable it otherwise

Definition at line 542 of file main.py.

                                                                  :
        """enable a setup button when checked, disable it otherwise
        """
        checkbox = self.__xml.get_widget(checkbox_name)
        assert checkbox is not None, "checkbox: %s not found" % checkbox_name
        button = self.__xml.get_widget(button_name)
        assert button is not None, "button: %s not found" % button_name
        button_enabled = checkbox.get_active()
        button.set_sensitive(button_enabled)


Generated by  Doxygen 1.6.0   Back to index