python强大的界面库-wxpthon

官网:

http://wxpython.org/

下面这段文字是官网的关于什么是wxPython的解释,其中有一处错误,后面我会解释。

wxPython is a GUI toolkit for the
Python
programming language. It allows Python programmers to create programs with a robust, highlyfunctional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popularwxWidgets
cross platform GUI library, which is written in C++.

Like Python and wxWidgets, wxPython is Open Source which means that it is free for anyone to use and the source code isavailable for anyone to look at and modify. Or anyone can contributefixes or enhancements to the project.

wxPython is a cross-platform toolkit. This means that thesame program will run on multiple platforms without modification.Currently supported platforms are 32-bit Microsoft Windows, most Unixor unix-like systems, and Macintosh OS X.

Since the language is Python, wxPython programs are simple,easy to write and easy to understand.Here is an example.

下面是上段的文字的翻译:

wxPython是针对python的界面库。利用它,可以很容易地构建一个健壮,功能丰富的用户界面。它是使用扩平台的用c++实现的GUI库-wxWidgets封装成的python的扩展库。

和Python, wxWidgets一样, wsPython是开源的,也就是说任何人可以使用它,并且查看和修改其源代码。

wxPython是跨平台的。这样一份源代码可以不经过任何更改,就可以运行在多个平台上。 当前支持的平台有:

1. win32 的Microsoft windows —————————————————–这里是错误的,因为后续发布了64bit的windows版本,但是没有这个页面并没有被即使更新。可以                        在 http://wxpython.org/download.php#stable,看到64bit的版本

2. 大多数的Unix和类Unix的系统

3. Macintosh OS X

因为wxPython对应的语言是python(注意wxPython封装的是用c++的gui库), 因此使用wxPython编码是简单的事情。这里有些例子

学习的wxPython有一个很好的网站

http://zetcode.com

使用wxPython加上python写程序确实能很大提高开发效率,可以参看下面的地址提供的例子:

http://zetcode.com/wxpython/skeletons/

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *