Changeset 220:96ad81e11b85 for src/mlx/gui
- Timestamp:
- 06/04/12 09:53:04 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/common.py
r191 r220 53 53 54 54 SELECTION_MULTIPLE = gtk.SELECTION_MULTIPLE 55 56 SHADOW_IN = gtk.SHADOW_IN 57 58 POLICY_AUTOMATIC = gtk.POLICY_AUTOMATIC 55 59 56 60 def text2unicode(text): … … 97 101 SELECTION_MULTIPLE = gtk.SelectionMode.MULTIPLE 98 102 103 SHADOW_IN = gtk.ShadowType.IN 104 105 POLICY_AUTOMATIC = gtk.PolicyType.AUTOMATIC 106 99 107 import codecs 100 108 _utf8Decoder = codecs.getdecoder("utf-8") -
src/mlx/gui/gui.py
r215 r220 12 12 from mlx.gui.prefs import Preferences 13 13 from mlx.gui.checklist import ChecklistEditor 14 from mlx.gui.pirep import PIREPViewer 14 15 15 16 import mlx.const as const … … 144 145 self._monitorWindowY = None 145 146 self._selfToggling = False 147 148 self._pirepViewer = PIREPViewer(self) 146 149 147 150 window.show_all() … … 1006 1009 if result==RESPONSETYPE_OK: 1007 1010 self.sendPIREP(pirep) 1011 elif result==1: 1012 self._pirepViewer.setPIREP(pirep) 1013 self._pirepViewer.show_all() 1014 self._pirepViewer.run() 1015 self._pirepViewer.hide() 1008 1016 1009 1017 def _getLoadPirepDialog(self): … … 1138 1146 1139 1147 dialog.add_button(xstr("button_cancel"), RESPONSETYPE_REJECT) 1148 dialog.add_button(xstr("viewPIREP"), 1) 1140 1149 dialog.add_button(xstr("sendPIREP"), RESPONSETYPE_OK) 1141 1150
Note:
See TracChangeset
for help on using the changeset viewer.