Skip to content
14 changes: 14 additions & 0 deletions gui/wxpython/wxgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@
# 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):
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