Last change
on this file since 743:6bc880ac41eb was 740:940403ee48fb, checked in by István Váradi <ivaradi@…>, 9 years ago |
Added support for an environment variable that can be set to use a different base URL for the MAVA site.
|
File size:
870 bytes
|
Line | |
---|
1 |
|
---|
2 | from common import *
|
---|
3 |
|
---|
4 | from mlx.i18n import xstr
|
---|
5 | import mlx.const as const
|
---|
6 |
|
---|
7 | import cef
|
---|
8 |
|
---|
9 | #------------------------------------------------------------------------------
|
---|
10 |
|
---|
11 | ## @package mlx.gui.acars
|
---|
12 | #
|
---|
13 | # The ACARS tab.
|
---|
14 | #
|
---|
15 | # This module implements to \ref ACRS class, which displays the MAVA ACARS in a
|
---|
16 | # browser window using CEF
|
---|
17 |
|
---|
18 | #------------------------------------------------------------------------------
|
---|
19 |
|
---|
20 | class ACARS(gtk.VBox):
|
---|
21 | """The flight info tab."""
|
---|
22 | # The URL of the ACARS map
|
---|
23 | URL = MAVA_BASE_URL + "/acars2/show.html"
|
---|
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.