-
Recent Posts
Recent Comments
Categories
Archives
Web tools
友情链接
Meta
Category Archives: Python and PyQt
How to convert Ascii to utf-8 in python
Here is the right way to convert Ascii code to utf-8 text, when use urllib to open some url: s = unicode(html, 'gbk') #convert to unicode first The 'gbk' is depend on the … Continue reading
Posted in Python and PyQt
Leave a comment
用Python开发windows桌面应用程序
Python变得越来越流行了,尝试着用它做了个小工具,感觉非常的方便、愉悦~ 在Windows下用python开发桌面程序,需要准备以下几个软件: 1、python-2.5.msi(python) 2、PyQt-Py2.5-gpl-4.8.1-1.exe(GUI库) 3、pywin32-214.win32-py2.5.exe(支持win32 api的扩展) 4、pyinstaller-1.5-rc1(将python打包成exe程序) 可以依次按照上述顺序安装,有了它们基本上所需的环境就搭好了。 注意各软件都要针对对应python的版本。 在开发过程中将会用到的两个重要的在线文档: 1、python 2.7在线文档:http://docs.python.org/library/index.html 2、qt在线文档(基本上可以此为参考):http://doc.qt.nokia.com/4.7-snapshot/index.html pyQt在线文档: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html 善用它们的搜索功能,将会比在google搜索来的更快、更有效。
Posted in Python and PyQt
Leave a comment