Ignore:
Timestamp:
03/24/19 08:15:59 (4 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Ran 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r869 r919  
    11# -*- coding: utf-8 -*-
    22
    3 from statusicon import StatusIcon
    4 from statusbar import Statusbar
    5 from info import FlightInfo
    6 from update import Updater
     3from .statusicon import StatusIcon
     4from .statusbar import Statusbar
     5from .info import FlightInfo
     6from .update import Updater
    77from mlx.gui.common import *
    88from mlx.gui.flight import Wizard
     
    1818from mlx.gui.acars import ACARS
    1919from mlx.gui.timetable import TimetableWindow
    20 import cef
     20from . import cef
    2121
    2222import mlx.const as const
     
    5151class GUI(fs.ConnectionListener):
    5252    """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") ]
    6262
    6363    def __init__(self, programDirectory, config):
     
    14621462                secondaryMarkup = xstr("sendPIREP_unknown_sec")
    14631463        else:
    1464             print "PIREP sending failed", result
     1464            print("PIREP sending failed", result)
    14651465            messageFormat = xstr("sendPIREP_failed")
    14661466            secondaryMarkup = xstr("sendPIREP_failed_sec")
     
    16861686                secondaryMarkup = xstr("sendPIREP_unknown_sec")
    16871687        else:
    1688             print "PIREP sending failed", result
     1688            print("PIREP sending failed", result)
    16891689            messageFormat = xstr("sendPIREP_failed")
    16901690            secondaryMarkup = xstr("sendPIREP_failed_sec")
     
    17111711
    17121712        for (timestampString, text) in self._logger.lines:
    1713             description += unicode(formatFlightLogLine(timestampString, text))
     1713            description += str(formatFlightLogLine(timestampString, text))
    17141714
    17151715        description += "\n\n" + ("=" * 40)
     
    17981798            for index in hotkeys:
    17991799                if index==self._pilotHotkeyIndex:
    1800                     print "gui.GUI._handleHotkeys: pilot hotkey pressed"
     1800                    print("gui.GUI._handleHotkeys: pilot hotkey pressed")
    18011801                    self._flight.pilotHotkeyPressed()
    18021802                elif index==self._checklistHotkeyIndex:
    1803                     print "gui.GUI._handleHotkeys: checklist hotkey pressed"
     1803                    print("gui.GUI._handleHotkeys: checklist hotkey pressed")
    18041804                    self._flight.checklistHotkeyPressed()
    18051805                else:
    1806                     print "gui.GUI._handleHotkeys: unhandled hotkey index:", index
     1806                    print("gui.GUI._handleHotkeys: unhandled hotkey index:", index)
    18071807
    18081808    def _showManual(self, menuitem):
Note: See TracChangeset for help on using the changeset viewer.