From 6f881d0b542559582e74ead8eb49448b00b8d0a1 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Thu, 3 Jan 2019 22:53:53 +0100 Subject: [PATCH] Removing deprecated and unneeded wxpython construction. --- gui/Gui/Attackwindow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/Gui/Attackwindow.py b/gui/Gui/Attackwindow.py index 24962cc..4a6ca70 100644 --- a/gui/Gui/Attackwindow.py +++ b/gui/Gui/Attackwindow.py @@ -93,7 +93,9 @@ class AttackDisplay(wx.ScrolledWindow): # This is needed, don't ask me why. self.SetScrollbars(0,0,0,0,0,0) - (framewidth,frameheight) = self.GetClientSizeTuple() + size = self.GetClientSize() + framewidth = size.width + frameheight = size.height (virtualwidth,virtualheight) = (framewidth,frameheight) def makefit(width,height):