Changeset 172:565a6ea1f630 for src/mlx/gui
- Timestamp:
- 05/12/12 17:28:52 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r171 r172 11 11 from mlx.gui.gates import FleetGateStatus 12 12 from mlx.gui.prefs import Preferences 13 from mlx.gui.checklist import ChecklistEditor 13 14 14 15 import mlx.const as const … … 85 86 86 87 self._preferences = Preferences(self) 88 self._checklistEditor = ChecklistEditor(self) 87 89 88 90 menuBar = self._buildMenuBar(accelGroup) … … 770 772 menuBar.append(toolsMenuItem) 771 773 772 prefsMenuItem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) 774 checklistMenuItem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) 775 checklistMenuItem.set_use_stock(True) 776 checklistMenuItem.set_label(xstr("menu_tools_chklst")) 777 checklistMenuItem.add_accelerator("activate", accelGroup, 778 ord(xstr("menu_tools_chklst_key")), 779 CONTROL_MASK, ACCEL_VISIBLE) 780 checklistMenuItem.connect("activate", self._editChecklist) 781 toolsMenu.append(checklistMenuItem) 782 783 prefsMenuItem = gtk.ImageMenuItem(gtk.STOCK_APPLY) 773 784 prefsMenuItem.set_use_stock(True) 774 785 prefsMenuItem.set_label(xstr("menu_tools_prefs")) … … 878 889 self._mainWindow.set_default(None) 879 890 891 def _editChecklist(self, menuItem): 892 """Callback for editing the checklists.""" 893 self._checklistEditor.run() 894 880 895 def _editPreferences(self, menuItem): 881 896 """Callback for editing the preferences."""
Note:
See TracChangeset
for help on using the changeset viewer.