wxPython是從wxWindows(後因M$的壓力改名為wxWidgets)派生出來,面向python GUI編程的python庫。wxWidgets提供了很多常用的控件,減少那些重復的架構工作,讓你快速的架構自己的GUI程序。 wxWidgets所定義的控件除了某些個別控件外,wxPython都包含內,在wxWidgets的文檔中可以看出wxPython支持下面的控件。 wxAcceleratorEntry wxAcceleratorTable wxActivateEvent wxBitmap wxBitmapButton wxBitmapDataObject wxBoxSizer wxBrush wxBusyInfo wxBusyCursor wxButton wxCalculateLayoutEvent wxCalendarCtrl wxCaret wxCheckBox wxCheckListBox wxChoice wxClientDC wxClipboard wxCloseEvent wxColourData wxColourDialog wxColour wxComboBox wxCommandEvent wxConfig wxControl wxCursor wxCustomDataObject wxDataFormat wxDataObject wxDataObjectComposite wxDataObjectSimple wxDateTime wxDateSpan wxDC wxDialog wxDirDialog wxDragImage wxDropFilesEvent wxDropSource wxDropTarget wxEraseEvent wxEvent wxEvtHandler wxFileConfig wxFileDataObject wxFileDialog wxFileDropTarget wxFileSystem wxFileSystemHandler wxFocusEvent wxFontData wxFontDialog wxFont wxFrame wxFSFile wxGauge wxGIFHandler wxGLCanvas wxHtmlCell wxHtmlContainerCell wxHtmlDCRenderer wxHtmlEasyPrinting wxHtmlParser wxHtmlTagHandler wxHtmlTag wxHtmlWinParser wxHtmlPrintout wxHtmlWinTagHandler wxHtmlWindow wxIconizeEvent wxIcon wxIdleEvent wxImage wxImageHandler wxImageList wxIndividualLayoutConstraint wxInitDialogEvent wxInputStream wxInternetFSHandler wxJoystickEvent wxKeyEvent wxLayoutAlgorithm wxLayoutConstraints wxListBox wxListCtrl wxListEvent wxListItem wxMask wxMaximizeEvent wxMDIChildFrame wxMDIClientWindow wxMDIParentFrame wxMemoryDC wxMemoryFSHandler wxMenuBar wxMenuEvent wxMenuItem wxMenu wxMessageDialog wxMetaFileDC wxMiniFrame wxMouseEvent wxMoveEvent wxNotebookEvent wxNotebook wxPageSetupDialogData wxPageSetupDialog wxPaintDC wxPaintEvent wxPalette wxPanel wxPen wxPoint wxPostScriptDC wxPreviewFrame wxPrintData wxPrintDialogData wxPrintDialog wxPrinter wxPrintPreview wxPrinterDC wxPrintout wxProcess wxQueryLayoutInfoEvent wxRadioBox wxRadioButton wxRealPoint wxRect wxRegionIterator wxRegion wxSashEvent wxSashLayoutWindow wxSashWindow wxScreenDC wxScrollBar wxScrollEvent wxScrolledWindow wxScrollWinEvent wxSingleChoiceDialog wxSizeEvent wxSize wxSizer wxSizerItem wxSlider wxSpinButton wxSpinEvent wxSplitterWindow wxStaticBitmap wxStaticBox wxStaticBoxSizer wxStaticLine wxStaticText wxStatusBar wxSysColourChangedEvent wxTaskBarIcon wxTextCtrl wxTextDataObject wxTextDropTarget wxTextEntryDialog wxTimer wxTimerEvent wxTimeSpan wxTipProvider wxToolBar wxToolTip wxTreeCtrl wxTreeEvent wxTreeItemData wxUpdateUIEvent wxValidator wxWindowDC wxWindow wxZipFSHandler 下面的可能是wxPython不支持的控件,因為英文不太好,所不十分確定。 wxBMPHandler wxJPEGHandler wxPNGHandler wxShowEvent wxToolBarTool wxTreeItemId 除了這些外標准控件外,還有一些組合控件,控件名稱一般是以Ctrl結尾。還有一類就是AUI控件
Advanced User Interface,它可以讓你做出較為流行的界面樣式。 wxPython控件的示范代碼在安裝wxPython帶有一個wxPython DEMO,裡面包括了大多數控件的使用代碼。
wxPython之控件列表
最新推荐文章于 2024-05-27 17:39:08 发布