From 112226e8d22286eca7ac1613af0a2d1746c533bc Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Wed, 17 Nov 2010 15:55:41 +0200 Subject: [PATCH] Fixed bad stuff happening prior to page reparenting --- gui/display.py | 4 ++-- gui/fittingView.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/display.py b/gui/display.py index 0ee31eda2..356caaf40 100644 --- a/gui/display.py +++ b/gui/display.py @@ -23,9 +23,9 @@ from gui.viewColumn import ViewColumn import sys class Display(wx.ListCtrl): - def __init__(self, parent, style = 0): + def __init__(self, parent, size = wx.DefaultSize, style = 0): - wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT | ( style | wx.BORDER_NONE if not (style & wx.SIMPLE_BORDER) else style) ) + wx.ListCtrl.__init__(self, parent,size = size, style=wx.LC_REPORT | ( style | wx.BORDER_NONE if not (style & wx.SIMPLE_BORDER) else style) ) self.imageList = wx.ImageList(16, 16) self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL) self.activeColumns = [] diff --git a/gui/fittingView.py b/gui/fittingView.py index c3c1a0e63..315b318dc 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -77,7 +77,7 @@ class FittingView(d.Display): ] def __init__(self, parent): - d.Display.__init__(self, parent) + d.Display.__init__(self, parent, size = (0,0)) self.Show(False) self.parent = parent self.mainFrame.Bind(FIT_CHANGED, self.fitChanged)