Ignore:
Timestamp:
07/04/19 17:57:45 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Using 'Gtk' instead of 'gtk' (re #347)

File:
1 edited

Legend:

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

    r994 r996  
    2020#-------------------------------------------------------------------------------
    2121
    22 class Statusbar(gtk.Frame, FlightStatusHandler):
     22class Statusbar(Gtk.Frame, FlightStatusHandler):
    2323    """A status bar for the logger."""
    2424    def __init__(self, iconDirectory):
    2525        """Construct the status bar."""
    26         gtk.Frame.__init__(self)
     26        Gtk.Frame.__init__(self)
    2727        FlightStatusHandler.__init__(self)
    2828
     
    3030        self._connected = False
    3131       
    32         self.set_shadow_type(gtk.ShadowType.NONE)
     32        self.set_shadow_type(Gtk.ShadowType.NONE)
    3333
    34         frameAlignment = gtk.Alignment(xscale = 1.0, yscale = 1.0)
     34        frameAlignment = Gtk.Alignment(xscale = 1.0, yscale = 1.0)
    3535
    3636        frameAlignment.set_padding(padding_top = 2, padding_bottom = 2,
     
    3838        self.add(frameAlignment)
    3939
    40         statusBox = gtk.HBox()
     40        statusBox = Gtk.HBox()
    4141        frameAlignment.add(statusBox)
    4242
     
    5050        self._connGreenIcon = pixbuf_new_from_file(iconPath)
    5151
    52         self._connStateArea = gtk.DrawingArea()
     52        self._connStateArea = Gtk.DrawingArea()
    5353        self._connStateArea.set_size_request(18, 18)
    5454        self._connStateArea.set_tooltip_markup(xstr("statusbar_conn_tooltip"))
     
    5656        self._connStateArea.connect("draw", self._drawConnState)
    5757
    58         alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5)
     58        alignment = Gtk.Alignment(xalign = 0.5, yalign = 0.5)
    5959        alignment.add(self._connStateArea)       
    6060
    6161        statusBox.pack_start(alignment, False, False, 8)
    6262
    63         statusBox.pack_start(gtk.VSeparator(), False, False, 8)
     63        statusBox.pack_start(Gtk.VSeparator(), False, False, 8)
    6464
    65         self._stageLabel = gtk.Label()
     65        self._stageLabel = Gtk.Label()
    6666        longestStage = xstr("flight_stage_" +
    6767                            const.stage2string(const.STAGE_PUSHANDTAXI))
     
    7272        statusBox.pack_start(self._stageLabel, False, False, 8)
    7373
    74         statusBox.pack_start(gtk.VSeparator(), False, False, 8)
     74        statusBox.pack_start(Gtk.VSeparator(), False, False, 8)
    7575
    76         self._timeLabel = gtk.Label("--:--:--")
     76        self._timeLabel = Gtk.Label("--:--:--")
    7777        self._timeLabel.set_width_chars(8)
    7878        self._timeLabel.set_tooltip_text(xstr("statusbar_time_tooltip"))
     
    8181        statusBox.pack_start(self._timeLabel, False, False, 8)
    8282
    83         statusBox.pack_start(gtk.VSeparator(), False, False, 8)
     83        statusBox.pack_start(Gtk.VSeparator(), False, False, 8)
    8484
    85         self._ratingLabel = gtk.Label()
     85        self._ratingLabel = Gtk.Label()
    8686        self._ratingLabel.set_width_chars(20)
    8787        self._ratingLabel.set_tooltip_text(xstr("statusbar_rating_tooltip"))
     
    9090        statusBox.pack_start(self._ratingLabel, False, False, 8)
    9191
    92         self._busyLabel = gtk.Label()
     92        self._busyLabel = Gtk.Label()
    9393        self._busyLabel.set_width_chars(30)
    9494        self._busyLabel.set_tooltip_text(xstr("statusbar_busy_tooltip"))
Note: See TracChangeset for help on using the changeset viewer.