/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() |
/VibrationTest/trunk/VibrationTest/VibrationTestGui.wxg |
---|
0,0 → 1,162 |
<?xml version="1.0"?> |
<!-- generated by wxGlade 0.6.3 on Thu Sep 24 15:45:48 2009 --> |
<application path="" name="VibrationTestGui" class="App" option="0" language="python" top_window="frame_1" encoding="ISO-8859-15" use_gettext="0" overwrite="0" use_new_namespace="1" for_version="2.8" is_template="0"> |
<object class="MainFrame" name="frame_1" base="EditFrame"> |
<style>wxDEFAULT_FRAME_STYLE</style> |
<title>frame_1</title> |
<object class="wxBoxSizer" name="sizer_1" base="EditBoxSizer"> |
<orient>wxVERTICAL</orient> |
<object class="sizeritem"> |
<border>2</border> |
<option>0</option> |
<object class="wxGridSizer" name="grid_sizer_1" base="EditGridSizer"> |
<hgap>4</hgap> |
<rows>5</rows> |
<cols>4</cols> |
<vgap>4</vgap> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="Port" base="EditStaticText"> |
<attribute>1</attribute> |
<label>Port</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_1" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_5" base="EditStaticText"> |
<attribute>1</attribute> |
<label>label_5</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_5" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_2" base="EditStaticText"> |
<attribute>1</attribute> |
<label>Motor(s)</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_2" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_6" base="EditStaticText"> |
<attribute>1</attribute> |
<label>label_6</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_6" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_3" base="EditStaticText"> |
<attribute>1</attribute> |
<label>Channel(s)</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_3" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_7" base="EditStaticText"> |
<attribute>1</attribute> |
<label>label_7</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_7" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_4" base="EditStaticText"> |
<attribute>1</attribute> |
<label>Speed(s)</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_4" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxALIGN_RIGHT</flag> |
<border>0</border> |
<option>0</option> |
<object class="wxStaticText" name="label_8" base="EditStaticText"> |
<attribute>1</attribute> |
<label>label_8</label> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxTextCtrl" name="text_ctrl_8" base="EditTextCtrl"> |
</object> |
</object> |
<object class="sizeritem"> |
<border>0</border> |
<option>0</option> |
<object class="wxButton" name="button_1" base="EditButton"> |
<label>button_1</label> |
</object> |
</object> |
<object class="sizerslot" /> |
<object class="sizerslot" /> |
<object class="sizerslot" /> |
</object> |
</object> |
<object class="sizeritem"> |
<flag>wxEXPAND</flag> |
<border>0</border> |
<option>1</option> |
<object class="spacer" name="spacer" base="EditSpacer"> |
<height>20</height> |
<width>20</width> |
</object> |
</object> |
<object class="sizerslot" /> |
</object> |
</object> |
</application> |