source: src/mlx/gui/acars.py@ 996:8035d80d5feb

python3
Last change on this file since 996:8035d80d5feb was 996:8035d80d5feb, checked in by István Váradi <ivaradi@…>, 5 years ago

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

File size: 879 bytes
RevLine 
[649]1
[919]2from .common import *
[649]3
4from mlx.i18n import xstr
5import mlx.const as const
6
[919]7from . import cef
[649]8
9#------------------------------------------------------------------------------
10
11## @package mlx.gui.acars
12#
13# The ACARS tab.
14#
[747]15# This module implements to \ref ACARS class, which displays the MAVA ACARS in a
[649]16# browser window using CEF
17
18#------------------------------------------------------------------------------
19
[996]20class ACARS(Gtk.VBox):
[649]21 """The flight info tab."""
22 # The URL of the ACARS map
[740]23 URL = MAVA_BASE_URL + "/acars2/show.html"
[649]24
25 def __init__(self, gui):
26 """Construct the flight info tab."""
27 super(ACARS, self).__init__()
28 self._gui = gui
29
30 def start(self):
31 """Start the browser."""
32 container = cef.getContainer()
33
34 self.pack_start(container, True, True, 0)
35
36 cef.startInContainer(container, ACARS.URL)
Note: See TracBrowser for help on using the repository browser.