def set_accelerator(self, accelerator):
        '''
        Set keyboard shortcut that activates this button.

        Args:
            accelerator (string): accelerator to be set. Should be in
            form <modifier>Letter.
        '''
        self._accelerator = accelerator
        toolbutton.setup_accelerator(self)
예제 #2
0
    def set_accelerator(self, accelerator):
        '''
        Set keyboard shortcut that activates this button.

        Args:
            accelerator (string): accelerator to be set. Should be in
            form <modifier>Letter.
        '''
        self._accelerator = accelerator
        toolbutton.setup_accelerator(self)
 def set_accelerator(self, accelerator):
     self._accelerator = accelerator
     toolbutton.setup_accelerator(self)
예제 #4
0
 def set_accelerator(self, accelerator):
     self._accelerator = accelerator
     toolbutton.setup_accelerator(self)