A wx.Frame is a top-level window. When people talk about GUIs, they usually speak of windows, menus and icons. Naturally then, you would expect that wx.Window should represent a window on the screen. Unfortunately, this is not the case. A wx.Window is the base class from which all visual elements are derived (buttons, menus, etc) and what we normally think of as a program window is a wx.Frame. This is an unfortunate inconsistency that has led to much confusion for new users. Within a frame, you’ll use a number of wxWindow sub-classes to flesh out the frame’s contents. Here are some of the more common elements you might want to put in your frame: A wx.MenuBar, which puts a menu……
阅读全文