📄 frame2.py
字号:
#Boa:Frame:Frame2
import wx
from wx.lib.anchors import LayoutAnchors
def create(parent):
return Frame2(parent)
[wxID_FRAME2, wxID_FRAME2BUTTON1, wxID_FRAME2SPLITTERWINDOW1,
wxID_FRAME2STATICTEXT1,
] = [wx.NewId() for _init_ctrls in range(4)]
class Frame2(wx.Frame):
def _init_ctrls(self, prnt):
# generated method, don't edit
wx.Frame.__init__(self, id=wxID_FRAME2, name='', parent=prnt,
pos=wx.Point(383, 202), size=wx.Size(376, 484),
style=wx.DEFAULT_FRAME_STYLE, title='Frame2')
self.SetClientSize(wx.Size(368, 456))
self.splitterWindow1 = wx.SplitterWindow(id=wxID_FRAME2SPLITTERWINDOW1,
name='splitterWindow1', parent=self, point=wx.Point(48, 8),
size=wx.Size(200, 100), style=wx.SP_3D)
self.splitterWindow1.SetConstraints(LayoutAnchors(self.splitterWindow1,
True, True, True, True))
self.staticText1 = wx.StaticText(id=wxID_FRAME2STATICTEXT1,
label='staticText1', name='staticText1',
parent=self.splitterWindow1, pos=wx.Point(2, 2), size=wx.Size(54,
452), style=0)
self.button1 = wx.Button(id=wxID_FRAME2BUTTON1, label='button1',
name='button1', parent=self.splitterWindow1, pos=wx.Point(63, 2),
size=wx.Size(303, 452), style=0)
self.splitterWindow1.SplitVertically(self.staticText1, self.button1, 56)
def __init__(self, parent):
self._init_ctrls(parent)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -