-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout2.py
More file actions
executable file
·141 lines (129 loc) · 6.91 KB
/
layout2.py
File metadata and controls
executable file
·141 lines (129 loc) · 6.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.6.7 (standalone edition) on Thu Jun 20 20:41:34 2013
#
import wx
# begin wxGlade: dependencies
import gettext
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class myFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: myFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
self.mainframe_statusbar = self.CreateStatusBar(1, wx.ST_SIZEGRIP)
self.pnlmain = wx.ScrolledWindow(self, wx.ID_ANY, style=wx.TAB_TRAVERSAL)
self.window_1 = wx.SplitterWindow(self.pnlmain, wx.ID_ANY, style=wx.SP_3DBORDER | wx.SP_BORDER)
self.window_1_pane_1 = wx.ScrolledWindow(self.window_1, wx.ID_ANY, style=wx.STATIC_BORDER | wx.TAB_TRAVERSAL)
self.label1 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label1"))
self.label2 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label2"))
self.label3 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label3"))
self.label4 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label4"))
self.label5 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label5"))
self.label6 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label6"))
self.label7 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label7"))
self.label8 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label8"))
self.label9 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label9"))
self.label10 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label10"))
self.label11 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label11"))
self.label12 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label12"))
self.label13 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label13"))
self.label14 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label14"))
self.label15 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label15"))
self.label16 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label16"))
self.label17 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label17"))
self.label18 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label18"))
self.label19 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label19"))
self.label20 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label20"))
self.label21 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label21"))
self.label22 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label22"))
self.label23 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label24"))
self.label24 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label24"))
self.label25 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label25"))
self.label26 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label26"))
self.label27 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label27"))
self.label28 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label28"))
self.label29 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label29"))
self.label30 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label30"))
self.label31 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label31"))
self.label32 = wx.StaticText(self.window_1_pane_1, wx.ID_ANY, _("label32"))
self.window_1_pane_2 = wx.ScrolledWindow(self.window_1, wx.ID_ANY, style=wx.STATIC_BORDER | wx.TAB_TRAVERSAL)
self.__set_properties()
self.__do_layout()
# end wxGlade
def __set_properties(self):
# begin wxGlade: myFrame.__set_properties
self.SetTitle(_("Tool"))
self.mainframe_statusbar.SetStatusWidths([-1])
# statusbar fields
mainframe_statusbar_fields = [_("mainframe_statusbar")]
for i in range(len(mainframe_statusbar_fields)):
self.mainframe_statusbar.SetStatusText(mainframe_statusbar_fields[i], i)
self.window_1_pane_1.SetScrollRate(1, 14)
self.window_1_pane_2.SetScrollRate(1, 1)
self.pnlmain.SetMinSize((850, 520))
self.pnlmain.SetScrollRate(1, 1)
# end wxGlade
def __do_layout(self):
# begin wxGlade: myFrame.__do_layout
sizer1 = wx.BoxSizer(wx.HORIZONTAL)
sizer_1 = wx.BoxSizer(wx.HORIZONTAL)
sizertitle = wx.BoxSizer(wx.VERTICAL)
sizertitle.Add(self.label1, 100, wx.EXPAND, 0)
sizertitle.Add(self.label2, 100, wx.EXPAND, 0)
sizertitle.Add(self.label3, 100, wx.EXPAND, 0)
sizertitle.Add(self.label4, 100, wx.EXPAND, 0)
sizertitle.Add(self.label5, 100, wx.EXPAND, 0)
sizertitle.Add(self.label6, 100, wx.EXPAND, 0)
sizertitle.Add(self.label7, 100, wx.EXPAND, 0)
sizertitle.Add(self.label8, 100, wx.EXPAND, 0)
sizertitle.Add(self.label9, 100, wx.EXPAND, 0)
sizertitle.Add(self.label10, 100, wx.EXPAND, 0)
sizertitle.Add(self.label11, 100, wx.EXPAND, 0)
sizertitle.Add(self.label12, 100, wx.EXPAND, 0)
sizertitle.Add(self.label13, 100, wx.EXPAND, 0)
sizertitle.Add(self.label14, 100, wx.EXPAND, 0)
sizertitle.Add(self.label15, 100, wx.EXPAND, 0)
sizertitle.Add(self.label16, 100, wx.EXPAND, 0)
sizertitle.Add(self.label17, 100, wx.EXPAND, 0)
sizertitle.Add(self.label18, 100, wx.EXPAND, 0)
sizertitle.Add(self.label19, 100, wx.EXPAND, 0)
sizertitle.Add(self.label20, 100, wx.EXPAND, 0)
sizertitle.Add(self.label21, 100, wx.EXPAND, 0)
sizertitle.Add(self.label22, 100, wx.EXPAND, 0)
sizertitle.Add(self.label23, 100, wx.EXPAND, 0)
sizertitle.Add(self.label24, 100, wx.EXPAND, 0)
sizertitle.Add(self.label25, 100, wx.EXPAND, 0)
sizertitle.Add(self.label26, 100, wx.EXPAND, 0)
sizertitle.Add(self.label27, 100, wx.EXPAND, 0)
sizertitle.Add(self.label28, 100, wx.EXPAND, 0)
sizertitle.Add(self.label29, 100, wx.EXPAND, 0)
sizertitle.Add(self.label30, 100, wx.EXPAND, 0)
sizertitle.Add(self.label31, 100, wx.EXPAND, 0)
sizertitle.Add(self.label32, 100, wx.EXPAND, 0)
self.window_1_pane_1.SetSizer(sizertitle)
self.window_1.SplitVertically(self.window_1_pane_1, self.window_1_pane_2, 80)
sizer_1.Add(self.window_1, 1, wx.EXPAND, 0)
self.pnlmain.SetSizer(sizer_1)
sizer1.Add(self.pnlmain, 1, wx.EXPAND, 0)
self.SetSizer(sizer1)
sizer1.Fit(self)
self.Layout()
self.Centre()
# end wxGlade
# end of class myFrame
class MyApp(wx.App):
def OnInit(self):
wx.InitAllImageHandlers()
mainframe = myFrame(None, wx.ID_ANY, "")
self.SetTopWindow(mainframe)
mainframe.Show()
return 1
# end of class MyApp
if __name__ == "__main__":
gettext.install("app") # replace with the appropriate catalog name
app = MyApp(0)
app.MainLoop()