Changeset 919:2ce8ca39525b for src/mlx/gui/gui.py
- Timestamp:
- 03/24/19 08:15:59 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r869 r919 1 1 # -*- coding: utf-8 -*- 2 2 3 from statusicon import StatusIcon4 from statusbar import Statusbar5 from info import FlightInfo6 from update import Updater3 from .statusicon import StatusIcon 4 from .statusbar import Statusbar 5 from .info import FlightInfo 6 from .update import Updater 7 7 from mlx.gui.common import * 8 8 from mlx.gui.flight import Wizard … … 18 18 from mlx.gui.acars import ACARS 19 19 from mlx.gui.timetable import TimetableWindow 20 import cef20 from . import cef 21 21 22 22 import mlx.const as const … … 51 51 class GUI(fs.ConnectionListener): 52 52 """The main GUI class.""" 53 _authors = [ ( u"Váradi", u"István", "prog_test"),54 ( u"Galyassy", u"Tamás", "negotiation"),55 ( u"Kurják", u"Ákos", "test"),56 ( u"Nagy", u"Dániel", "test"),57 ( u"Radó", u"Iván", "test"),58 ( u"Petrovszki", u"Gábor", "test"),59 ( u"Serfőző", u"Tamás", "test"),60 ( u"Szebenyi", u"Bálint", "test"),61 ( u"Zsebényi-Loksa", u"Gergely", "test") ]53 _authors = [ ("Váradi", "István", "prog_test"), 54 ("Galyassy", "Tamás", "negotiation"), 55 ("Kurják", "Ákos", "test"), 56 ("Nagy", "Dániel", "test"), 57 ("Radó", "Iván", "test"), 58 ("Petrovszki", "Gábor", "test"), 59 ("Serfőző", "Tamás", "test"), 60 ("Szebenyi", "Bálint", "test"), 61 ("Zsebényi-Loksa", "Gergely", "test") ] 62 62 63 63 def __init__(self, programDirectory, config): … … 1462 1462 secondaryMarkup = xstr("sendPIREP_unknown_sec") 1463 1463 else: 1464 print "PIREP sending failed", result1464 print("PIREP sending failed", result) 1465 1465 messageFormat = xstr("sendPIREP_failed") 1466 1466 secondaryMarkup = xstr("sendPIREP_failed_sec") … … 1686 1686 secondaryMarkup = xstr("sendPIREP_unknown_sec") 1687 1687 else: 1688 print "PIREP sending failed", result1688 print("PIREP sending failed", result) 1689 1689 messageFormat = xstr("sendPIREP_failed") 1690 1690 secondaryMarkup = xstr("sendPIREP_failed_sec") … … 1711 1711 1712 1712 for (timestampString, text) in self._logger.lines: 1713 description += unicode(formatFlightLogLine(timestampString, text))1713 description += str(formatFlightLogLine(timestampString, text)) 1714 1714 1715 1715 description += "\n\n" + ("=" * 40) … … 1798 1798 for index in hotkeys: 1799 1799 if index==self._pilotHotkeyIndex: 1800 print "gui.GUI._handleHotkeys: pilot hotkey pressed"1800 print("gui.GUI._handleHotkeys: pilot hotkey pressed") 1801 1801 self._flight.pilotHotkeyPressed() 1802 1802 elif index==self._checklistHotkeyIndex: 1803 print "gui.GUI._handleHotkeys: checklist hotkey pressed"1803 print("gui.GUI._handleHotkeys: checklist hotkey pressed") 1804 1804 self._flight.checklistHotkeyPressed() 1805 1805 else: 1806 print "gui.GUI._handleHotkeys: unhandled hotkey index:", index1806 print("gui.GUI._handleHotkeys: unhandled hotkey index:", index) 1807 1807 1808 1808 def _showManual(self, menuitem):
Note:
See TracChangeset
for help on using the changeset viewer.