(self)
creates some actions needed on some menues and toolbars
creates some actions needed on some menues and toolbars
creates some actions needed on some menues and toolbars
def _setupActions(self):
        """
        creates some actions needed on some menues and toolbars
        """
        a = self._actions["close_shell"] = qt.QAction( qt.QIconSet(qt.QPixmap(os.path.join(CONF.getIconsPath(),"newshell.png"))), "&Close Shell", qt.Qt.CTRL + qt.Qt.Key_W, self, "New Shell" )
        self.connect(a, qt.SIGNAL('activated()'), self.destroyShellTab)
        
        a = self._actions["new_shell"] = qt.QAction( qt.QIconSet(qt.QPixmap(os.path.join(CONF.getIconsPath(),"newshell.png"))), "&New Shell", qt.Qt.CTRL + qt.Qt.Key_T, self, "New Shell" )
        self.connect(a, qt.SIGNAL('activated()'), self.createShellTab)
def _setupActions ( self ) : a = self . _actions [ "close_shell" ] = qt . QAction ( qt . QIconSet ( qt . QPixmap ( os . path . join ( CONF . getIconsPath ( ) , "newshell.png" ) ) ) , "&Close Shell" , qt . Qt . CTRL + qt . Qt . Key_W , self , "New Shell" ) self . connect ( a , qt . SIGNAL ( 'activated()' ) , self . destroyShellTab ) a = self . _actions [ "new_shell" ] = qt . QAction ( qt . QIconSet ( qt . QPixmap ( os . path . join ( CONF . getIconsPath ( ) , "newshell.png" ) ) ) , "&New Shell" , qt . Qt . CTRL + qt . Qt . Key_T , self , "New Shell" ) self . connect ( a , qt . SIGNAL ( 'activated()' ) , self . createShellTab )