From 099c45035050487328f4eff90c858df3f439244e Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 16 May 2011 16:19:42 +0300 Subject: [PATCH] Stuff made in shipbrowser race selection (forgot exactly what) --- config.py | 2 +- gui/shipBrowser.py | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/config.py b/config.py index 3c2c59680..12863d8b1 100644 --- a/config.py +++ b/config.py @@ -8,7 +8,7 @@ except ImportError: configforced = None # Turns on debug mode -debug = False +debug = True # Version data version = "1.0" diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index db0c4f8a2..7dba7c20b 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -129,7 +129,6 @@ class RaceSelector(wx.Window): self.Layout() - def OnSizeUpdate(self,event): self.CalcButtonsBarPos() @@ -166,7 +165,6 @@ class RaceSelector(wx.Window): if stage == 2: categoryID = self.shipBrowser.GetStageData(stage) wx.PostEvent(self.shipBrowser,Stage2Selected(categoryID=categoryID, back = True)) - event.Skip() def HitTest(self, mx,my): @@ -206,12 +204,11 @@ class RaceSelector(wx.Window): mdc.SetBackground(wx.Brush(bkColor)) mdc.Clear() - mdc.SetPen(wx.Pen(sepColor,1,wx.SOLID)) - if self.layout == wx.VERTICAL: - mdc.DrawLine(rect.width-1, 0 , rect.width-1, rect.height) - else: - mdc.DrawLine(0,0,rect.width,0) - +# mdc.SetPen(wx.Pen(sepColor,1,wx.SOLID)) +# if self.layout == wx.VERTICAL: +# mdc.DrawLine(rect.width-1, 0 , rect.width-1, rect.height) +# else: +# mdc.DrawLine(0,0,rect.width,0) x ,y = self.buttonsBarPos @@ -329,7 +326,7 @@ class ShipBrowser(wx.Panel): self.lpane = PFWidgetsContainer(self) layout = wx.HORIZONTAL - self.raceselect = RaceSelector(self, layout = layout) + self.raceselect = RaceSelector(self, layout = layout, animate = False) container = wx.BoxSizer(wx.VERTICAL if layout == wx.HORIZONTAL else wx.HORIZONTAL) if layout == wx.HORIZONTAL: