Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 590 → Rev 591

/VibrationTest/trunk/VibrationTest/VibrationTestGui.py
116,7 → 116,9
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.GraphFanel = wx.Panel(self, -1)
self.GraphPanel = wx.Panel(self, -1, style=wx.DOUBLE_BORDER|wx.TAB_TRAVERSAL)
self.choice_3 = wx.Choice(self, -1, choices=[])
self.choice_4 = wx.Choice(self, -1, choices=[])
self.TestListCtrl = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
 
self.__set_properties()
131,7 → 133,7
def __set_properties(self):
# begin wxGlade: MainFrame.__set_properties
self.SetTitle("VibrationTest")
self.GraphFanel.SetMinSize((800,300))
self.GraphPanel.SetMinSize((800,300))
# end wxGlade
 
def __do_layout(self):
138,7 → 140,9
# begin wxGlade: MainFrame.__do_layout
sizer_1 = wx.BoxSizer(wx.VERTICAL)
grid_sizer_2 = wx.GridSizer(2, 1, 4, 4)
sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
grid_sizer_1 = wx.GridSizer(5, 4, 4, 4)
sizer_1.Add((20, 20), 0, 0, 0)
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)
157,7 → 161,12
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(self.GraphFanel, 0, wx.EXPAND, 0)
sizer_1.Add((20, 20), 0, 0, 0)
sizer_1.Add(self.GraphPanel, 1, wx.ALIGN_CENTER_HORIZONTAL, 0)
sizer_2.Add(self.choice_3, 0, 0, 0)
sizer_2.Add(self.choice_4, 0, 0, 0)
sizer_1.Add(sizer_2, 0, wx.EXPAND, 0)
sizer_1.Add((20, 20), 0, 0, 0)
grid_sizer_2.Add(self.TestListCtrl, 1, wx.ALL|wx.EXPAND, 0)
sizer_1.Add(grid_sizer_2, 1, wx.EXPAND, 0)
self.SetSizer(sizer_1)
169,7 → 178,7
self.TestListCtrl.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnTestSelected, self.TestListCtrl)
 
# Configure Graph
self.client = wx.lib.plot.PlotCanvas(self.GraphFanel)
self.client = wx.lib.plot.PlotCanvas(self.GraphPanel)
self.client.SetPointLabelFunc(self.DrawPointLabel)
self.client.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL))
/VibrationTest/trunk/VibrationTest/VibrationTestGui.wxg
1,5 → 1,5
<?xml version="1.0"?>
<!-- generated by wxGlade 0.6.3 on Mon Sep 28 15:58:50 2009 -->
<!-- generated by wxGlade 0.6.3 on Tue Sep 29 18:21:51 2009 -->
 
<application path="D:\Fred\MK_Proj\VibrationTest\trunk\VibrationTest\VibrationTestGui.py" 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.6" is_template="0">
<object class="MainFrame" name="frame_1" base="EditFrame">
31,6 → 31,14
<object class="wxBoxSizer" name="sizer_1" base="EditBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="spacer" name="spacer" base="EditSpacer">
<height>20</height>
<width>20</width>
</object>
</object>
<object class="sizeritem">
<border>2</border>
<option>0</option>
<object class="wxGridSizer" name="grid_sizer_1" base="EditGridSizer">
171,11 → 179,18
</object>
</object>
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>0</option>
<object class="wxPanel" name="GraphFanel" base="EditPanel">
<style>wxTAB_TRAVERSAL</style>
<object class="spacer" name="spacer" base="EditSpacer">
<height>20</height>
<width>20</width>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>1</option>
<object class="wxPanel" name="GraphPanel" base="EditPanel">
<style>wxDOUBLE_BORDER|wxTAB_TRAVERSAL</style>
<size>800,300</size>
</object>
</object>
182,6 → 197,40
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>0</option>
<object class="wxBoxSizer" name="sizer_2" base="EditBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxChoice" name="choice_3" base="EditChoice">
<selection>0</selection>
<choices>
</choices>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxChoice" name="choice_4" base="EditChoice">
<selection>0</selection>
<choices>
</choices>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="spacer" name="spacer" base="EditSpacer">
<height>20</height>
<width>20</width>
</object>
</object>
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>1</option>
<object class="wxGridSizer" name="grid_sizer_2" base="EditGridSizer">
<hgap>4</hgap>
196,7 → 245,6
<style>wxLC_REPORT|wxSUNKEN_BORDER</style>
</object>
</object>
<object class="sizerslot" />
</object>
</object>
</object>