Exemple #1
0
 def Do(self):
     cmd = CalcChangeModuleSpoolCommand(
         fitID=self.fitID,
         projected=True,
         position=self.position,
         spoolType=self.spoolType,
         spoolAmount=self.spoolAmount)
     success = self.internalHistory.submit(cmd)
     Fit.getInstance().recalc(self.fitID)
     wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitID=self.fitID))
     return success
Exemple #2
0
 def Do(self):
     cmd = CalcChangeModuleSpoolCommand(
         fitID=self.fitID,
         projected=False,
         position=self.position,
         spoolType=self.spoolType,
         spoolAmount=self.spoolAmount)
     success = self.internalHistory.submit(cmd)
     eos.db.flush()
     sFit = Fit.getInstance()
     sFit.recalc(self.fitID)
     sFit.fill(self.fitID)
     eos.db.commit()
     wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
     return success