From d5ba325233c130c91888f0572d9c69fbfcd48333 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Tue, 29 May 2007 16:39:25 +0200 Subject: [PATCH] Workaround for strange wxPython display error. Since a while, wxPython has been refusing to correctly display strings with a dash in them in the staticText object. Given a string "xx-yy", only "xx" is displayed. This caused some problems for protocols with dashes in their protocol names. I've worked around it by replacing all occurrences of "-" by "_". --- gui/Gui/Scytherthread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/Gui/Scytherthread.py b/gui/Gui/Scytherthread.py index 832c8dc..d91fabf 100644 --- a/gui/Gui/Scytherthread.py +++ b/gui/Gui/Scytherthread.py @@ -376,6 +376,7 @@ class ResultWindow(wx.Frame): def BuildClaim(self,grid,cl,ypos): # a support function def addtxt(txt,column): + txt = txt.replace("-","_") # Strange fix for wx.StaticText as it cuts off the display. grid.Add(wx.StaticText(self,-1,txt),(ypos,column),(1,1),wx.ALIGN_CENTER_VERTICAL|wx.ALL,10) n = len(cl.attacks)