效果图:
源码如下:
# 作者:萧海
# 联系: [email protected]
# application:版权拥有 侵权必究
# @time: 2023/5/20 10:38
import wx
import wx.grid
class MyFrame(wx.Frame):
def __init__(self, parent, title,size=(500,480)):
super().__init__(parent, title=title,size=(500,480))
# 创建一个 Notebook 控件,并添加三个标签页
self.notebook = wx.Notebook(self)
self.page1 = wx.Panel(self.notebook)
self.page2 = wx.Panel(self.notebook)
self.page3 = wx.Panel(self.notebook)
self.notebook.AddPage(self.page1, "标签页一")
self.notebook.AddPage(self.page2, "标签页二")
self.notebook.Add