摘要: 最近在使用Pyqt来写一个小的软件。有一个功能需要用到多线程去访问主线程的QtGui.QLable控件来进行更新内容.发现会出现界面不更新或是长时间访问就会使程序异常的情况。下面是我以前写的例子:lock = threading.Lock() def __dostart(self,... 阅读全文
posted @ 2014-06-05 11:14 冰风之吻 阅读(2207) 评论(0) 推荐(0)
摘要: 1.窗口整体透明,但是窗体上的控件不透明。class BackRect(QtGui.QWidget): borderWidth = 200 borderHeight = 200 def __init__(self, parent = None): QtGui.QWid... 阅读全文
posted @ 2014-05-21 21:20 冰风之吻 阅读(1041) 评论(0) 推荐(0)
摘要: 1、简说Py2exe是可以把python程序传化为exe的工具,它比较强大也非常好用。但是它会生成多个文件。如果需要只生成一个文件可以考虑使用pyInstaller.有个人写过对pyinstaller相关文章http://cloudbbs.org/forum.php?mod=viewthread&t... 阅读全文
posted @ 2014-05-16 21:07 冰风之吻 阅读(412) 评论(0) 推荐(0)