📜  wxPython wx.Window Connect 示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.785000             🧑  作者: Mango

代码示例1
1 class MainWindow(wx.Frame):
   2     def __init__(self, parent, title):
   3         wx.Frame.__init__(self,parent, title=title, size=(200,100))
   4         ...
   5         menuItem = filemenu.Append(wx.ID_ABOUT, "&About"," Information about this program")
   6         self.Bind(wx.EVT_MENU, self.OnAbout, menuItem)