def __init__(self, model_api, project, main_form):
        frmRunSimulation.__init__(self, main_form)
        self.model_api = model_api
        self.project = project

        #  Initialize display of continuity errors
        self.ErrRunoff = 0.0  # Runoff continuity error
        self.ErrFlow = 0.0  # Flow routing continuity error
        self.ErrQual = 0.0  # Quality routing continuity error
        self.lblSurface.setText('')
        self.lblFlow.setText('')
        self.lblQuality.setText('')
        self.txtSurface.setText('')
        self.txtFlow.setText('')
        self.txtQuality.setText('')
        # self.fraFinished.setText('')
        self.fraFinished.setVisible(False)
        self.fraRunning.setVisible(True)
        self.fraFinished.setVisible(False)
        self.StatusLabel.Caption = self.TXT_STATUS_INIT
        self.cmdStop.setVisible(False)
        self.cmdMinimize.setVisible(False)
        self.cmdOK.setVisible(False)
        self.gbxContinuity.setVisible(False)
        self.progressBar.setVisible(True)
        self.lblTime.setVisible(True)
        self.fraTime.setVisible(True)
        self.fraBottom.setVisible(True)

        #  Initialize placement and status of images on the ResultsPage
        self.lblIconSuccessful.Visible = False
Exemple #2
0
    def __init__(self, model_api, project, main_form):
        frmRunSimulation.__init__(self, main_form)
        self.model_api = model_api
        self.project = project

        #  Initialize display of continuity errors
        self.ErrRunoff = 0.0  # Runoff continuity error
        self.ErrFlow = 0.0  # Flow routing continuity error
        self.ErrQual = 0.0  # Quality routing continuity error
        # self.lblSurface.setText('')
        # self.lblFlow.setText('')
        # self.lblQuality.setText('')
        # self.txtSurface.setText('')
        # self.txtFlow.setText('')
        # self.txtQuality.setText('')
        self.fraRunning.setVisible(True)
        self.fraFinished.setVisible(False)
        self.StatusLabel.Caption = self.TXT_STATUS_INIT
        self.cmdStop.setVisible(False)
        self.cmdMinimize.setVisible(False)
        self.cmdOK.setVisible(False)
        self.gbxContinuity.setVisible(False)

        #  Initialize placement and status of images on the ResultsPage
        self.lblIconSuccessful.Visible = False
        # self.lblIconError.Visible = False
        # self.lblIconError.Left = self.lblIconSuccessful.Left
        # self.lblIconError.Top  = self.lblIconSuccessful.Top

        #  Make the ProgressPage be the active page
        # Notebook1.PageIndex = 0
        self.run_err_msg = ""
    def __init__(self, model_api, project, main_form):
        frmRunSimulation.__init__(self, main_form)
        self.model_api = model_api
        self.project = project

        #  Initialize display of continuity errors
        self.ErrRunoff = 0.0  # Runoff continuity error
        self.ErrFlow = 0.0  # Flow routing continuity error
        self.ErrQual = 0.0  # Quality routing continuity error
        # self.lblSurface.setText('')
        # self.lblFlow.setText('')
        # self.lblQuality.setText('')
        # self.txtSurface.setText('')
        # self.txtFlow.setText('')
        # self.txtQuality.setText('')
        self.fraRunning.setVisible(True)
        self.fraFinished.setVisible(False)
        self.StatusLabel.Caption = self.TXT_STATUS_INIT
        self.cmdStop.setVisible(False)
        self.cmdMinimize.setVisible(False)
        self.cmdOK.setVisible(False)
        self.gbxContinuity.setVisible(False)
        self._total_days = 0  # total model time period duration, set while running

        #  Initialize placement and status of images on the ResultsPage
        self.lblIconSuccessful.Visible = False
Exemple #4
0
    def __init__(self, parent=None):
        frmRunSimulation.__init__(self, parent)

        #  Initialize display of continuity errors
        self.ErrRunoff = 0.0          # Runoff continuity error
        self.ErrFlow = 0.0       # Flow routing continuity error
        self.ErrQual = 0.0            # Quality routing continuity error
        self.lblSurface.setText('')
        self.lblFlow.setText('')
        self.lblQuality.setText('')
        self.txtSurface.setText('')
        self.txtFlow.setText('')
        self.txtQuality.setText('')
        self.fraFinished.setText('')
        self.fraFinished.setVisible(False)
        self.gbxContinuity.setVisible(False)
        self.last_displayed_days = -1  # Old elapsed number of days

        #  Initialize placement and status of images on the ResultsPage
        self.lblIconSuccessful.Visible = False