Let wx autosize Graphframe

This commit is contained in:
HomeWorld
2010-11-28 11:12:04 +02:00
parent 34fe62196e
commit 95e68c069d

View File

@@ -41,7 +41,6 @@ class GraphFrame(wx.Frame):
i = wx.IconFromBitmap(bitmapLoader.getBitmap("graphs_small", "icons"))
self.SetIcon(i)
self.SetMinSize((520,390))
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
self.CreateStatusBar()
@@ -100,6 +99,9 @@ class GraphFrame(wx.Frame):
self.mainFrame.Bind(gui.builtinViews.fittingView.FIT_CHANGED, self.draw)
self.Bind(wx.EVT_CLOSE, self.close)
self.Fit()
self.SetMinSize(self.GetSize())
def handleDrag(self, type, fitID):
if type == "fit":
self.AppendFitToList(fitID)