- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r652 r620 15 15 from mlx.gui.pirep import PIREPViewer 16 16 from mlx.gui.bugreport import BugReportDialog 17 from mlx.gui.acars import ACARS18 import cef19 17 20 18 import mlx.const as const … … 104 102 window.connect("delete-event", self.deleteMainWindow) 105 103 window.connect("window-state-event", self._handleMainWindowState) 106 if os.name=="nt":107 window.connect("leave-notify-event", self._handleLeaveNotify)108 104 accelGroup = gtk.AccelGroup() 109 105 window.add_accel_group(accelGroup) 110 window.realize()111 106 112 107 mainVBox = gtk.VBox() … … 156 151 self._notebook.append_page(self._fleetGateStatus, label) 157 152 158 self._acars = ACARS(self)159 label = gtk.Label("ACARS")160 label.set_use_underline(True)161 self._notebook.append_page(self._acars, label)162 163 153 (self._debugLogWidget, self._debugLogView) = self._buildLogWidget() 164 154 self._debugLogWidget.show_all() … … 180 170 181 171 window.show_all() 182 if os.name=="nt":183 window.get_window().focus()184 172 185 173 self._wizard.grabDefault() … … 439 427 self._updater = Updater(self, 440 428 self._programDirectory, 441 self.config. DEFAULT_UPDATE_URL,429 self.config.updateURL, 442 430 self._mainWindow) 443 431 self._updater.start() 444 445 cef.initialize()446 self._acars.start()447 432 448 433 singleton.raiseCallback = self.raiseCallback 449 434 gtk.main() 450 435 singleton.raiseCallback = None 451 452 cef.finalize()453 436 454 437 self._disconnect() … … 704 687 (event.new_window_state&WINDOW_STATE_ICONIFIED)==0: 705 688 self._mainWindow.present() 706 707 def _handleLeaveNotify(self, widget, event):708 """Handle the leave-notify event.709 710 Here we reset the focus to the main window as CEF might have acquired711 it earlier."""712 self._mainWindow.get_window().focus()713 689 714 690 def raiseCallback(self):
Note:
See TracChangeset
for help on using the changeset viewer.