wxpython中文教程之wxpython函数

发布时间:2020-07-13编辑:脚本学堂
有关wxpython函数的用法,wxpython系统函数system functions介绍,wxpython其它类型的函数,wxpython中文教程中有关函数的入门内容。

wxpython 提供了很多有用的函数. 在程序中使用它们是很容易的.
技术上看,这些函数属于模块(module)函数, 比如说它们中一些就是在模块范围内定义的. 它们类似于 C++  以及 Java 中的静态方法.[more…]

专题:wxpython中文教程

wx<a href=http://www.jb200.com/python_func/ target=_blank class=infotextkey>python函数</a>1

系统函数system functions

有以下系统函数
wxpython函数2

 system_functions
对话框函数dialog functions

这些函数创建出对话框. 而这些对话框可以完成一些通用任务.
 

复制代码 代码示例:

dialog_functions
        string wx.GetTextFromUser(string message, string caption='',
                                  string default_value='',
                                  wx.Window parent=None)
       
        string wx.DirSelector(string message=wx.DirSelectorPromptStr,
                              string defaultPath='', style=wx.DD_DEFAULT_STYLE,
                              wx.Point pos=wx.DefaultPosition,
                              wx.Window parent=None)
       
        string wx.FileSelector(string message=wx.FileSelectorPromptStr,
                               string default_path='',
                               string default_extension='',
                               string wildcard=
                               wx.FileSelectorDefaultWildcardStr,
                               integer flags=0, wx.Window parent=None,
                               integer x=-1, integer y=-1)

        long wx.GetNumberFromUser(string message, string prompt,
                                  string caption, long value, long min=0,
                                  long max=100, wx.Window parent=None,
                                  wx.Point pos=wx.DefaultPosition)

        string wx.GetSingleChoice(string message, string caption,
                                  integer choice,
                                  string choices_array, wx.Window parent=None,
                                  integer x=-1, integer y=-1,
                                  bool centre=True,
                                  integer width=150, integer height=200)
       
        integer wx.GetSingleChoiceIndex(string message, string caption,
                                        integer choices, string choices_array,
                                        wx.Window parent=None, integer width=150,
                                        integer height=200)
       
        string wx.LoadFileSelector(string what, string extension,
                                   string default_name='',
                                   wx.Window parent=None)
       
        integer wx.MessageBox(string message, string caption='',
                              style=wx.OK|wx.CENTER, wx.Window parent=None,
                              integer x=-1, integer y=-1)
       
        string wx.SaveFileSelector(string what, string extension,
                                   string default_name='',
                                   wx.Window parent=None)
 

其它函数other functions

其它函数.
wxpython函数3
 other_functions