Exemple #1
0
    def connect_or_disconnect_signals(self, isConnect):
        """
        Connect or disconnect widget signals sent to their slot methods.
        This can be overridden in subclasses. By default it does nothing.
        @param isConnect: If True the widget will send the signals to the slot 
                          method. 
        @type  isConnect: boolean
        """

        if isConnect:
            change_connect = self.win.connect
        else:
            change_connect = self.win.disconnect

        self._listWidget.connect_or_disconnect_signals(isConnect)

        change_connect(self.searchToolButton, SIGNAL("clicked()"),
                       self.searchNodes)

        prefs_key = dnaSearchTypeLabelChoice_prefs_key
        connect_comboBox_with_pref(self.searchTypeComboBox, prefs_key)

        change_connect(self.searchTypeComboBox,
                       SIGNAL("currentIndexChanged(int)"),
                       self.searchTypeComboBox_indexChanged)
    def connect_or_disconnect_signals(self, isConnect):
        """
        Connect or disconnect widget signals sent to their slot methods.
        This can be overridden in subclasses. By default it does nothing.
        @param isConnect: If True the widget will send the signals to the slot
                          method.
        @type  isConnect: boolean
        """


        if isConnect:
            change_connect = self.win.connect
        else:
            change_connect = self.win.disconnect

        self._listWidget.connect_or_disconnect_signals(isConnect)

        change_connect( self.searchToolButton,
                      SIGNAL("clicked()"),
                      self.searchNodes)

        prefs_key = dnaSearchTypeLabelChoice_prefs_key
        connect_comboBox_with_pref(self.searchTypeComboBox,
                                   prefs_key )

        change_connect( self.searchTypeComboBox,
                      SIGNAL("currentIndexChanged(int)"),
                      self.searchTypeComboBox_indexChanged)
Exemple #3
0
 def _connect_widgets_with_prefs_keys(self):
     """
     Connect various widgets with a prefs_key
     """       
     prefs_key = dnaBaseNumberLabelChoice_prefs_key
     connect_comboBox_with_pref(self._baseNumberComboBox, 
                                prefs_key )
     
     prefs_key = dnaBaseNumberingOrder_prefs_key
     connect_comboBox_with_pref(self._baseNumberingOrderComboBox ,
                                prefs_key )