81,8 → 81,23 |
|
self.button.SetFocus() |
|
self.running = True |
self.Bind(EVT_MEAS_STATUS_UPDATE, self.OnUpdate) |
self.Bind(EVT_MEAS_DATA, self.OnData) |
# The first argument that is passed to the constructor is the parent |
self.app = args[0].app |
self.error = False |
self.firstVoltage = True |
|
|
def __set_properties(self): |
# begin wxGlade: MeasureDialog.__set_properties |
self.SetTitle("Measuring Status") |
self.text_ctrl_1.SetMinSize((400,300)) |
self.voltageCtrl.SetMinSize((50,-1)) |
self.speedCtrl.SetMinSize((50,-1)) |
# end wxGlade |
|
|
# Configure Voltage Ctrl |
self.voltageCtrl.SetAngleRange(0,pi) |
intervals = range(0, 5) |
103,7 → 118,6 |
self.voltageCtrl.SetArcColour(wx.WHITE) |
self.voltageCtrl.SetSpeedValue(2) |
|
|
# Configure Speed Ctr; |
self.speedCtrl.SetAngleRange(0,pi) |
intervals = range(0, 261, 20) |
126,24 → 140,7 |
self.speedCtrl.SetArcColour(wx.WHITE) |
self.speedCtrl.SetSpeedValue(0) |
|
|
self.running = True |
self.Bind(EVT_MEAS_STATUS_UPDATE, self.OnUpdate) |
self.Bind(EVT_MEAS_DATA, self.OnData) |
# The first argument that is passed to the constructor is the parent |
self.app = args[0].app |
self.error = False |
self.firstVoltage = True |
|
|
def __set_properties(self): |
# begin wxGlade: MeasureDialog.__set_properties |
self.SetTitle("Measuring Status") |
self.text_ctrl_1.SetMinSize((400,300)) |
self.voltageCtrl.SetMinSize((50,-1)) |
self.speedCtrl.SetMinSize((50,-1)) |
# end wxGlade |
|
def __do_layout(self): |
# begin wxGlade: MeasureDialog.__do_layout |
sizer_1 = wx.BoxSizer(wx.HORIZONTAL) |