Changeset 264:6fbadb22b2c3 for src/mlx/gui
- Timestamp:
- 07/01/12 07:58:44 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/checklist.py
r260 r264 203 203 selection = self._fileList.get_selection() 204 204 (model, paths) = selection.get_selected_rows() 205 while paths: 206 model.remove(model.get_iter(paths[0])) 207 (model, paths) = selection.get_selected_rows() 205 206 iters = [model.get_iter(path) for path in paths] 207 208 for i in iters: 209 if i is not None: 210 model.remove(i) 208 211 209 212 def _moveUpButtonClicked(self, button): -
src/mlx/gui/common.py
r246 r264 62 62 WINDOW_STATE_ICONIFIED = gdk.WINDOW_STATE_ICONIFIED 63 63 WINDOW_STATE_WITHDRAWN = gdk.WINDOW_STATE_WITHDRAWN 64 65 SORT_ASCENDING = gtk.SORT_ASCENDING 66 SORT_DESCENDING = gtk.SORT_DESCENDING 64 67 65 68 pixbuf_new_from_file = gdk.pixbuf_new_from_file … … 118 121 WINDOW_STATE_WITHDRAWN = gdk.WindowState.WITHDRAWN 119 122 123 SORT_ASCENDING = gtk.SortType.ASCENDING 124 SORT_DESCENDING = gtk.SortType.DESCENDING 125 120 126 pixbuf_new_from_file = gdkPixbuf.Pixbuf.new_from_file 121 127 -
src/mlx/gui/gui.py
r261 r264 13 13 from mlx.gui.prefs import Preferences 14 14 from mlx.gui.checklist import ChecklistEditor 15 from mlx.gui.callouts import ApproachCalloutsEditor 15 16 from mlx.gui.pirep import PIREPViewer 16 17 … … 95 96 self._preferences = Preferences(self) 96 97 self._checklistEditor = ChecklistEditor(self) 98 self._approachCalloutsEditor = ApproachCalloutsEditor(self) 97 99 98 100 menuBar = self._buildMenuBar(accelGroup) … … 870 872 checklistMenuItem.connect("activate", self._editChecklist) 871 873 toolsMenu.append(checklistMenuItem) 874 875 approachCalloutsMenuItem = gtk.ImageMenuItem(gtk.STOCK_EDIT) 876 approachCalloutsMenuItem.set_use_stock(True) 877 approachCalloutsMenuItem.set_label(xstr("menu_tools_callouts")) 878 approachCalloutsMenuItem.add_accelerator("activate", accelGroup, 879 ord(xstr("menu_tools_callouts_key")), 880 CONTROL_MASK, ACCEL_VISIBLE) 881 approachCalloutsMenuItem.connect("activate", self._editApproachCallouts) 882 toolsMenu.append(approachCalloutsMenuItem) 872 883 873 884 prefsMenuItem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) … … 1007 1018 """Callback for editing the checklists.""" 1008 1019 self._checklistEditor.run() 1020 1021 def _editApproachCallouts(self, menuItem): 1022 """Callback for editing the approach callouts.""" 1023 self._approachCalloutsEditor.run() 1009 1024 1010 1025 def _editPreferences(self, menuItem):
Note:
See TracChangeset
for help on using the changeset viewer.