Skip to content
11 changes: 11 additions & 0 deletions gui/wxpython/wxgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
# during start up, remove when not needed
import wx.adv


# Fix GTK-CRITICAL assertion width/height >= -1
def patch_gtk_size():
orig = wx.Window.DoMoveWindow
def _safe(self, x, y, w, h):

Check failure on line 44 in gui/wxpython/wxgui.py

View workflow job for this annotation

GitHub Actions / Python Code Quality Checks (ubuntu-24.04)

ruff (E306)

gui/wxpython/wxgui.py:44:5: E306 Expected 1 blank line before a nested definition, found 0 help: Add missing blank line
Comment thread
kikislater marked this conversation as resolved.
return orig(self, x, y, max(w, 0), max(h, 0))
wx.Window.DoMoveWindow = _safe


patch_gtk_size()

try:
import wx.lib.agw.advancedsplash as SC
except ImportError:
Expand Down
Loading