Ignore:
Timestamp:
03/15/23 19:01:30 (13 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Updates for CEF 108 and the corresponding CEFPython.

File:
1 edited

Legend:

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

    r996 r1083  
    2727        super(ACARS, self).__init__()
    2828        self._gui = gui
     29        self._browser = None
    2930
    3031    def start(self):
     
    3435        self.pack_start(container, True, True, 0)
    3536
    36         cef.startInContainer(container, ACARS.URL)
     37        self._browser = cef.startInContainer(container, ACARS.URL)
     38
     39    def stop(self):
     40        """Close the browser."""
     41        if self._browser is not None:
     42            self._browser.CloseBrowser(False)
     43            self._browser = None
Note: See TracChangeset for help on using the changeset viewer.