First draft of price fetching code, as well as a bugfix fixing fitting calculations being done twice

This commit is contained in:
cncfanatics
2010-09-11 14:05:04 +02:00
parent f81db477fc
commit 2bb7abca11
7 changed files with 99 additions and 13 deletions

View File

@@ -32,6 +32,7 @@ class StatsPane(wx.Panel):
"capacitorViewFull", "targetingmiscViewFull", "priceViewFull"]
def fitChanged(self, event):
print "f"
cFit = controller.Fit.getInstance()
fit = cFit.getFit(event.fitID)
for view in self.views:
@@ -45,8 +46,8 @@ class StatsPane(wx.Panel):
# Force font size 8
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
standardFont.SetPointSize(8)
self.SetFont(standardFont)
self.SetFont(standardFont)
mainSizer = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(mainSizer)
@@ -61,7 +62,7 @@ class StatsPane(wx.Panel):
view.populatePanel(contentPanel, headerPanel)
tp.SetLabel(view.getHeaderText(None))
view.refreshPanel(None)
mainSizer.Add(tp, 0, wx.EXPAND | wx.LEFT, 3)