Changeset 1097:f2ac841cffec for src/mlx/gui/acars.py
- Timestamp:
- 08/11/23 14:39:35 (9 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/acars.py
r1083 r1097 27 27 super(ACARS, self).__init__() 28 28 self._gui = gui 29 self._container = None 29 30 self._browser = None 30 31 31 32 def start(self): 32 33 """Start the browser.""" 33 container = cef.getContainer() 34 self._container = cef.getContainer() 35 self.pack_start(self._container, True, True, 0) 34 36 35 self.pack_start(container, True, True, 0) 36 37 self._browser = cef.startInContainer(container, ACARS.URL) 37 self._browser = cef.startInContainer(self._container, ACARS.URL) 38 38 39 39 def stop(self): 40 40 """Close the browser.""" 41 41 if self._browser is not None: 42 self._browser.CloseBrowser( False)42 self._browser.CloseBrowser(True) 43 43 self._browser = None 44 45 if self._container is not None: 46 self.remove(self._container) 47 self._container = None
Note:
See TracChangeset
for help on using the changeset viewer.