Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 654 → Rev 653

/VibrationTest/trunk/VibrationTest/VibrationTestGui.py
81,23 → 81,8
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)
118,6 → 103,7
self.voltageCtrl.SetArcColour(wx.WHITE)
self.voltageCtrl.SetSpeedValue(2)
 
 
# Configure Speed Ctr;
self.speedCtrl.SetAngleRange(0,pi)
intervals = range(0, 261, 20)
140,7 → 126,24
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)