Controls组件可以分为以下几类:
1、动态小组件:
wx.ToggleButton
wx.CheckBox
wx.TextCtrl
wx.SpinCtrl
wx.ComboBox
wx.BitmapButton
wx.Slider
wx.Choice
wx.RadioButton
wx.Button
wx.ScrollBar
wx.Grid
wx.RadioBox
wx.SpinButton
wx.ListBox
2、静态组件:
wx.StaticBitmap:
wx.StaticBox
wx.Gauge
wx.StaticText
wx.StaticLine
3、其他组件:
wx.ToolBar
wx.MenuBar
wx.StatusBar
The button widget inherits from 4 different base classes. The closest class is the wx.Control class.
A button widget is a kind of a small window. All widgets that appear on the screen are windows. Therefore they inherit from wx.Window class.
Not all widgets are controls. For example wx.Dialog is not a kind of control.wx.Frame it can contain any window that is not a frame or dialog
The controls are widgets that are placed on other widgets called containers. That's why we have a separate wx.Control base class.
这段话的总体意思是:button也是一个window,所有的可以展现在屏幕上的组件都是窗口,所以这些控制器都从wx.Windows继承;
wx.Dialog 不是一个控制器,这个构件和wx.Frame是同一个级别的,所以不能被wx.Frame所包含。
放置控制组件的组件是容器,所以我们才会有一个单独的wx.Controls基类