Exemplo n.º 1
0
    def changedReductionParams(self):
        rf = getIntInLineEdit(self.widget().ReductionLE)
        Application.vrpApp.mw.spawnPatienceDialog()
        reqId = theGuiMsgHandler().setReductionFactor(rf)
        theGuiMsgHandler().waitforAnswer(reqId)
        Application.vrpApp.mw.unSpawnPatienceDialog()

        # update params of project in ObjectMgr
        params = ObjectMgr().getParamsOfObject(0)
        params.reductionFactor = rf
        ObjectMgr().setParams(0, params)
Exemplo n.º 2
0
    def changedReductionParams(self):
        rf = getIntInLineEdit(self.widget().ReductionLE)
        Application.vrpApp.mw.spawnPatienceDialog()
        reqId = theGuiMsgHandler().setReductionFactor(rf)
        theGuiMsgHandler().waitforAnswer(reqId)
        Application.vrpApp.mw.unSpawnPatienceDialog()

        # update params of project in ObjectMgr
        params = ObjectMgr().getParamsOfObject(0)
        params.reductionFactor = rf
        ObjectMgr().setParams(0, params)