Subversion Repositories Projects

Rev

Rev 585 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
584 FredericG 1
#!/usr/bin/env python
2
# -*- coding: iso-8859-15 -*-
3
# generated by wxGlade 0.6.3 on Thu Sep 24 15:46:36 2009
4
 
5
import wx
6
 
7
# begin wxGlade: extracode
8
# end wxGlade
9
 
10
 
11
 
12
class MainFrame(wx.Frame):
13
    def __init__(self, *args, **kwds):
14
        # begin wxGlade: MainFrame.__init__
15
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
16
        wx.Frame.__init__(self, *args, **kwds)
17
        self.Port = wx.StaticText(self, -1, "Port")
18
        self.text_ctrl_1 = wx.TextCtrl(self, -1, "")
19
        self.label_5 = wx.StaticText(self, -1, "label_5")
20
        self.text_ctrl_5 = wx.TextCtrl(self, -1, "")
21
        self.label_2 = wx.StaticText(self, -1, "Motor(s)")
22
        self.text_ctrl_2 = wx.TextCtrl(self, -1, "")
23
        self.label_6 = wx.StaticText(self, -1, "label_6")
24
        self.text_ctrl_6 = wx.TextCtrl(self, -1, "")
25
        self.label_3 = wx.StaticText(self, -1, "Channel(s)")
26
        self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
27
        self.label_7 = wx.StaticText(self, -1, "label_7")
28
        self.text_ctrl_7 = wx.TextCtrl(self, -1, "")
29
        self.label_4 = wx.StaticText(self, -1, "Speed(s)")
30
        self.text_ctrl_4 = wx.TextCtrl(self, -1, "")
31
        self.label_8 = wx.StaticText(self, -1, "label_8")
32
        self.text_ctrl_8 = wx.TextCtrl(self, -1, "")
33
        self.button_1 = wx.Button(self, -1, "button_1")
34
 
35
        self.__set_properties()
36
        self.__do_layout()
37
        # end wxGlade
38
 
39
    def __set_properties(self):
40
        # begin wxGlade: MainFrame.__set_properties
41
        self.SetTitle("frame_1")
42
        # end wxGlade
43
 
44
    def __do_layout(self):
45
        # begin wxGlade: MainFrame.__do_layout
46
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
47
        grid_sizer_1 = wx.GridSizer(5, 4, 4, 4)
48
        grid_sizer_1.Add(self.Port, 0, wx.ALIGN_RIGHT, 0)
49
        grid_sizer_1.Add(self.text_ctrl_1, 0, 0, 0)
50
        grid_sizer_1.Add(self.label_5, 0, wx.ALIGN_RIGHT, 0)
51
        grid_sizer_1.Add(self.text_ctrl_5, 0, 0, 0)
52
        grid_sizer_1.Add(self.label_2, 0, wx.ALIGN_RIGHT, 0)
53
        grid_sizer_1.Add(self.text_ctrl_2, 0, 0, 0)
54
        grid_sizer_1.Add(self.label_6, 0, wx.ALIGN_RIGHT, 0)
55
        grid_sizer_1.Add(self.text_ctrl_6, 0, 0, 0)
56
        grid_sizer_1.Add(self.label_3, 0, wx.ALIGN_RIGHT, 0)
57
        grid_sizer_1.Add(self.text_ctrl_3, 0, 0, 0)
58
        grid_sizer_1.Add(self.label_7, 0, wx.ALIGN_RIGHT, 0)
59
        grid_sizer_1.Add(self.text_ctrl_7, 0, 0, 0)
60
        grid_sizer_1.Add(self.label_4, 0, wx.ALIGN_RIGHT, 0)
61
        grid_sizer_1.Add(self.text_ctrl_4, 0, 0, 0)
62
        grid_sizer_1.Add(self.label_8, 0, wx.ALIGN_RIGHT, 0)
63
        grid_sizer_1.Add(self.text_ctrl_8, 0, 0, 0)
64
        grid_sizer_1.Add(self.button_1, 0, 0, 0)
65
        sizer_1.Add(grid_sizer_1, 0, 0, 2)
66
        sizer_1.Add((20, 20), 1, wx.EXPAND, 0)
67
        self.SetSizer(sizer_1)
68
        sizer_1.Fit(self)
69
        self.Layout()
70
        # end wxGlade
71
 
72
# end of class MainFrame
73
 
74
 
75
class App(wx.App):
76
    def OnInit(self):
77
        wx.InitAllImageHandlers()
78
        frame_1 = MainFrame(None, -1, "")
79
        self.SetTopWindow(frame_1)
80
        frame_1.Show()
81
        return 1
82
 
83
# end of class App
84
 
85
if __name__ == "__main__":
86
    VibrationTestGui = App(0)
87
    VibrationTestGui.MainLoop()