Changeset 1099:a2d5a4d1c6c1


Ignore:
Timestamp:
08/11/23 14:47:06 (11 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Various minor bugfixes

Location:
src/mlx/gui
Files:
3 edited

Legend:

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

    r1097 r1099  
    124124    def finalize(self):
    125125        """Close the browser and release it."""
    126         self._browser.CloseBrowser()
    127         self._browser = None
     126        if self._browser is not None:
     127            self._browser.CloseBrowser(True)
     128            self._browser = None
    128129
    129130    def _onLoadEnd(self, browser, frame, http_code):
  • src/mlx/gui/common.py

    r1083 r1099  
    3434    pass
    3535from gi.repository import Pango
     36gi.require_version("PangoCairo", "1.0")
    3637from gi.repository import PangoCairo
    3738from gi.repository import GLib
  • src/mlx/gui/gui.py

    r1098 r1099  
    869869    def flushStdIO(self):
    870870        """Flush any text to the standard error that could not be logged."""
    871         if self._stdioText:
     871        if self._stdioText and sys.__stderr__ is not None:
    872872            sys.__stderr__.write(self._stdioText)
    873873
Note: See TracChangeset for help on using the changeset viewer.