Ejemplo n.º 1
0
 def updateFromMoose(self):
     """Update the tick dt from the tick objects"""
     ticks = moose.vector('/clock/tick')
     # Items at position 0 are the column headers, hence ii+1
     for ii in range(ticks[0].localNumField):
         self.updateTextFromTick(ii)
     self.updateCurrentTime()
Ejemplo n.º 2
0
 def updateFromMoose(self):
     """Update the tick dt from the tick objects"""
     ticks = moose.vector('/clock/tick')
     # Items at position 0 are the column headers, hence ii+1
     for ii in range(ticks[0].localNumField):
         self.updateTextFromTick(ii)
     self.updateCurrentTime()
Ejemplo n.º 3
0
 def updateTextFromTick(self, tickNo):
     tick = moose.vector('/clock/tick')[tickNo]
     widget = self.tickListWidget.layout().itemAtPosition(tickNo + 1, 1).widget()
     if widget is not None and isinstance(widget, QtGui.QLineEdit):
         widget.setText(str(tick.dt))
Ejemplo n.º 4
0
 def updateTextFromTick(self, tickNo):
     tick = moose.vector('/clock/tick')[tickNo]
     widget = self.tickListWidget.layout().itemAtPosition(tickNo + 1,
                                                          1).widget()
     if widget is not None and isinstance(widget, QLineEdit):
         widget.setText(str(tick.dt))