-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_Base.py
111 lines (72 loc) · 3.95 KB
/
GUI_Base.py
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
# -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
import wx
import wx.xrc
###########################################################################
## Class Main
###########################################################################
class Main ( wx.Frame ):
def __init__( self, parent ):
wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Win32GUI", pos = wx.DefaultPosition, size = wx.Size( 800,500 ), style = wx.DEFAULT_FRAME_STYLE|wx.FRAME_SHAPED|wx.TAB_TRAVERSAL )
self.SetSizeHints( wx.Size( 200,100 ), wx.DefaultSize )
self.SetBackgroundColour( wx.Colour( 0, 0, 0 ) )
SizerMain = wx.BoxSizer( wx.VERTICAL )
SizerTop = wx.WrapSizer( wx.HORIZONTAL, wx.WRAPSIZER_DEFAULT_FLAGS )
self.Butt1 = wx.Button( self, wx.ID_ANY, u"File", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt1, 0, wx.ALL, 5 )
self.Butt11 = wx.Button( self, wx.ID_ANY, u"Edit", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt11, 0, wx.ALL, 5 )
self.Butt12 = wx.Button( self, wx.ID_ANY, u"Select", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt12, 0, wx.ALL, 5 )
self.Butt13 = wx.Button( self, wx.ID_ANY, u"Windows", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt13, 0, wx.ALL, 5 )
self.Butt14 = wx.Button( self, wx.ID_ANY, u"Run", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt14, 0, wx.ALL, 5 )
self.Butt141 = wx.Button( self, wx.ID_ANY, u"CMD", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt141, 0, wx.ALL, 5 )
self.Butt1411 = wx.Button( self, wx.ID_ANY, u"Help", wx.DefaultPosition, wx.Size( 100,50 ), wx.BORDER_NONE )
SizerTop.Add( self.Butt1411, 0, wx.ALL, 5 )
SizerMain.Add( SizerTop, 0, 0, 5 )
SizerSide = wx.BoxSizer( wx.VERTICAL )
self.m_checkBox1 = wx.CheckBox( self, wx.ID_ANY, u"启用多线程ENG", wx.DefaultPosition, wx.Size( 200,50 ), 0 )
self.m_checkBox1.SetValue(True)
SizerSide.Add( self.m_checkBox1, 0, wx.ALL, 5 )
self.m_radioBtn1 = wx.RadioButton( self, wx.ID_ANY, u"RadioBtn", wx.DefaultPosition, wx.DefaultSize, 0 )
SizerSide.Add( self.m_radioBtn1, 0, wx.ALL, 5 )
self.m_radioBtn2 = wx.RadioButton( self, wx.ID_ANY, u"RadioBtn", wx.DefaultPosition, wx.DefaultSize, 0 )
SizerSide.Add( self.m_radioBtn2, 0, wx.ALL, 5 )
self.m_radioBtn3 = wx.RadioButton( self, wx.ID_ANY, u"RadioBtn", wx.DefaultPosition, wx.DefaultSize, 0 )
SizerSide.Add( self.m_radioBtn3, 0, wx.ALL, 5 )
self.m_toggleBtn1 = wx.ToggleButton( self, wx.ID_ANY, u"MyButton", wx.DefaultPosition, wx.DefaultSize, 0 )
SizerSide.Add( self.m_toggleBtn1, 0, wx.ALL, 5 )
self.SwitchMA = wx.Button( self, wx.ID_ANY, u"MyButton", wx.DefaultPosition, wx.Size( 200,40 ), 0 )
SizerSide.Add( self.SwitchMA, 0, wx.ALL, 5 )
CMBAChoices = []
self.CMBA = wx.ComboBox( self, wx.ID_ANY, u"Combo", wx.DefaultPosition, wx.Size( 100,25 ), CMBAChoices, 0 )
SizerSide.Add( self.CMBA, 0, wx.ALL, 5 )
m_choice1Choices = []
self.m_choice1 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice1Choices, 0 )
self.m_choice1.SetSelection( 0 )
SizerSide.Add( self.m_choice1, 0, wx.ALL, 5 )
SizerMain.Add( SizerSide, 0, 0, 5 )
self.SetSizer( SizerMain )
self.Layout()
self.Centre( wx.BOTH )
# Connect Events
self.Bind( wx.EVT_KEY_DOWN, self.MainOnKeyDown )
self.Bind( wx.EVT_MOVE, self.MainOnMove )
self.Bind( wx.EVT_SIZE, self.MainOnSize )
def __del__( self ):
pass
# Virtual event handlers, override them in your derived class
def MainOnKeyDown( self, event ):
event.Skip()
def MainOnMove( self, event ):
event.Skip()
def MainOnSize( self, event ):
event.Skip()