First draft of price fetching code, as well as a bugfix fixing fitting calculations being done twice
This commit is contained in:
@@ -45,6 +45,7 @@ class FittingView(d.Display):
|
||||
|
||||
#Gets called from the fitMultiSwitch when it decides its time
|
||||
def changeFit(self, fitID):
|
||||
print "c"
|
||||
self.activeFitID = fitID
|
||||
if fitID == None:
|
||||
self.Hide()
|
||||
@@ -54,6 +55,7 @@ class FittingView(d.Display):
|
||||
wx.PostEvent(self.mainFrame, FitChanged(fitID=fitID))
|
||||
|
||||
def appendItem(self, itemID):
|
||||
print "a"
|
||||
fitID = self.activeFitID
|
||||
if fitID != None:
|
||||
cFit = controller.Fit.getInstance()
|
||||
@@ -61,6 +63,7 @@ class FittingView(d.Display):
|
||||
wx.PostEvent(self.mainFrame, FitChanged(fitID=fitID))
|
||||
|
||||
def removeItem(self, event):
|
||||
print "i"
|
||||
row, _ = self.HitTest(event.Position)
|
||||
if row != -1:
|
||||
cFit = controller.Fit.getInstance()
|
||||
|
||||
Reference in New Issue
Block a user