Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 583 → Rev 584

/VibrationTest/trunk/VibrationTest/VibrationTestGui.py
0,0 → 1,87
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
# generated by wxGlade 0.6.3 on Thu Sep 24 15:46:36 2009
 
import wx
 
# begin wxGlade: extracode
# end wxGlade
 
 
 
class MainFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MainFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
self.Port = wx.StaticText(self, -1, "Port")
self.text_ctrl_1 = wx.TextCtrl(self, -1, "")
self.label_5 = wx.StaticText(self, -1, "label_5")
self.text_ctrl_5 = wx.TextCtrl(self, -1, "")
self.label_2 = wx.StaticText(self, -1, "Motor(s)")
self.text_ctrl_2 = wx.TextCtrl(self, -1, "")
self.label_6 = wx.StaticText(self, -1, "label_6")
self.text_ctrl_6 = wx.TextCtrl(self, -1, "")
self.label_3 = wx.StaticText(self, -1, "Channel(s)")
self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
self.label_7 = wx.StaticText(self, -1, "label_7")
self.text_ctrl_7 = wx.TextCtrl(self, -1, "")
self.label_4 = wx.StaticText(self, -1, "Speed(s)")
self.text_ctrl_4 = wx.TextCtrl(self, -1, "")
self.label_8 = wx.StaticText(self, -1, "label_8")
self.text_ctrl_8 = wx.TextCtrl(self, -1, "")
self.button_1 = wx.Button(self, -1, "button_1")
 
self.__set_properties()
self.__do_layout()
# end wxGlade
 
def __set_properties(self):
# begin wxGlade: MainFrame.__set_properties
self.SetTitle("frame_1")
# end wxGlade
 
def __do_layout(self):
# begin wxGlade: MainFrame.__do_layout
sizer_1 = wx.BoxSizer(wx.VERTICAL)
grid_sizer_1 = wx.GridSizer(5, 4, 4, 4)
grid_sizer_1.Add(self.Port, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_1, 0, 0, 0)
grid_sizer_1.Add(self.label_5, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_5, 0, 0, 0)
grid_sizer_1.Add(self.label_2, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_2, 0, 0, 0)
grid_sizer_1.Add(self.label_6, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_6, 0, 0, 0)
grid_sizer_1.Add(self.label_3, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_3, 0, 0, 0)
grid_sizer_1.Add(self.label_7, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_7, 0, 0, 0)
grid_sizer_1.Add(self.label_4, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_4, 0, 0, 0)
grid_sizer_1.Add(self.label_8, 0, wx.ALIGN_RIGHT, 0)
grid_sizer_1.Add(self.text_ctrl_8, 0, 0, 0)
grid_sizer_1.Add(self.button_1, 0, 0, 0)
sizer_1.Add(grid_sizer_1, 0, 0, 2)
sizer_1.Add((20, 20), 1, wx.EXPAND, 0)
self.SetSizer(sizer_1)
sizer_1.Fit(self)
self.Layout()
# end wxGlade
 
# end of class MainFrame
 
 
class App(wx.App):
def OnInit(self):
wx.InitAllImageHandlers()
frame_1 = MainFrame(None, -1, "")
self.SetTopWindow(frame_1)
frame_1.Show()
return 1
 
# end of class App
 
if __name__ == "__main__":
VibrationTestGui = App(0)
VibrationTestGui.MainLoop()