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

def textRouter::TextRouter::on_menuUtilitiesRemoveShortcut_select (   self,
  event 
)

Lists shortcuts so the user can choose one to delete.

Definition at line 2074 of file textRouter.py.

02074                                                           :
        """Lists shortcuts so the user can choose one to delete."""
        if len(self.shortcuts.shortcuts) == 0:
            self.status("There are currently no shortcuts defined.")
            return 0

        options = self.shortcuts.shortcuts.keys()

        default = options[0]
        dlg = ChooserDialog(self, 'Choose Shortcut', \
                            "Choose which shortcut to remove...", \
                            options, default)
        dlg.showModal()
        
        if not dlg.accepted():
            self.status("Shortcut deletion cancelled.")
        else:
            if dlg.components.options.stringSelection == "":
                self.status("No shortcut selected for deleting.")
            else:
                self.status("Removed shortcut '%s'." % dlg.components.options.stringSelection)
                self.shortcuts.delShortcut(dlg.components.options.stringSelection)
        dlg.destroy()

        #self.shortcuts.printShortcuts()

    def on_menuUtilitiesPreferences_select(self, event):


Generated by  Doxygen 1.6.0   Back to index