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

@@ -106,6 +106,7 @@ class MultiSwitch(wx.Notebook):
self.SetPageImage(tab, self.imageList.Add(bitmap))
def pageChanged(self, event):
print "p"
selection = event.Selection
page = self.GetPage(selection)
if hasattr(page, "type") and page.type == "fit":
@@ -153,6 +154,7 @@ class MultiSwitch(wx.Notebook):
event.Skip()
def itemSelected(self, event):
print "s"
selected = self.GetSelection()
page = self.GetPage(selected)
if page.type == "fit":