PyQt帮助和建议 [英] PyQt Help and Advice

查看:57
本文介绍了PyQt帮助和建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我对Python很新。我发现它是一种易于学习的语言,而且对于许多任务而言,这是一个非常有用的语言。目前我正在开发一个涉及GUI的python

项目,并建议PyQt是设计GUI的最佳方式。

然而,由于PyQt相当新,我没有找到关于

的文档或其中的示例。我找到的唯一有用的教程/书籍是
www.opendocspublishing.com/ pyqt / 但对于某人来说并不总是很清楚

几乎没有任何GUI经验。

有人有什么建议吗?


Ilya

Dear All,

I am fairly new to Python. I have found it an easy language to learn and
a very usefull one for many tasks. Currently I am working on a python
project that involves a GUI and it was suggested that PyQt is the best way to
design that GUI.
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya

推荐答案

Ilya Knizhnik启发我们:
Ilya Knizhnik enlightened us with:
但是因为PyQt相当新,我没有找到太多关于它的文档或其中的示例。我找到的唯一有用的教程/书籍是在 www.opendocspublishing.com/ pyqt /
但对于几乎没有GUI经验的人来说并不总是很清楚。
However since PyQt is rather new, I have not found much
documentation on it, or examples in it. The only useful
tutorial/book I have found is at www.opendocspublishing.com/pyqt/
but it is not always clear for someone with almost no GUI
experience.




您可能想要关注QT

文档附带的QT教程。阅读QT文档的最佳方式是通过QT

助理。您可以使用QT''''''设计GUI(它被称为

方式,非常原始的名称)并将.ui文件转换为.py文件与

''pyuic''。


Sybren

-

世界的问题是愚蠢。并不是说应该对愚蠢的死刑进行处罚,但为什么我们不要仅仅拿掉

安全标签来解决问题呢? br />



You might want to follow the QT tutorials that come with the QT
documentation. The best way to read the QT docs is through QT
Assistant. You can design GUIs with QT''s ''designer'' (it''s called that
way, very original name) and convert the .ui files to .py files with
''pyuic''.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don''t we just take the
safety labels off of everything and let the problem solve itself?


2003年7月29日星期二15:17:40 +0000,Ilya Knizhnik写道:
On Tue, 29 Jul 2003 15:17:40 +0000, Ilya Knizhnik wrote:
但是因为PyQt相当新,我没有找到关于
它或其中的例子的文档。我找到的唯一有用的教程/书籍是
www.opendocspublishing.com/ pyqt / 但对于几乎没有GUI体验的人来说并不总是很清楚。
有没有人有任何建议?

Ilya
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya



如果您完全熟悉C ++,或者即使您不熟悉C ++,您也会找到

Qt'的API文档,< a rel =nofollowhref =http://doc.trolltech.com/3.0/\"target =_ blank> http://doc.trolltech.com/3.0/ ,非常方便。我发现

pyQt与它们几乎完全相关,除了一些str QString

转换问题。我在做PyQt代码的时候总是这么说。

另外,我不知道你在做什么操作系统或发行版,但是有一套pyqt

例子。在redhat中,我使用了PyQt-examples rpm(大小写

敏感),它安装了一堆示例程序到

/ usr / share / doc / PyQt-examples- [版]。也。正如Sybren所提到的,Qt

教程本身应该是有用的..最后,我会说你提到的这本书很好,并且是一个奇妙的例子来源码。我喜欢它

足够我买了它,我很高兴我做到了。


祝你好运PyQt!我遇到的唯一问题是QCanvas没有

删除画布项目(因此我的程序泄漏它们)如果我没有b $ b重新使用它们。我仍然没有想到这一点,所以我只是跟踪我创建和重用它们的那些,以防止内存泄漏。


Keith



If you''re at all familiar with C++, or even if you''re not, you''ll find
Qt''s API docs, http://doc.trolltech.com/3.0/ , very handy. I''ve found that
pyQt correlates almost exactly with them, except for some str QString
conversion issues. I refer to that all the time when I''m doing PyQt code.
Also, I don''t know what OS or distro you''re on, but there is a set of pyqt
examples out there. In redhat, I used the PyQt-examples rpm (case
sensitive), which installs a bunch of example programs to
/usr/share/doc/PyQt-examples-[version]. Also. as Sybren mentioned, the Qt
tutorial itself should be useful.. Finally, I''ll say that the book you
mentioned is excellent, and a wonder source of example code. I liked it
enough that I bought it, and I''m happy I did.

Good luck with PyQt! The only issues I''ve had were related to QCanvas not
deleting canvas items (and therefore my program leaking them) if I don''t
reuse them. I still haven''t figured that out, so I just keep track of the
ones I create and reuse them, in order to prevent memory leaks.

Keith


2003年7月29日星期二,Ilya Knizhnik写道:
On Tue, 29 Jul 2003, Ilya Knizhnik wrote:
我对Python很新。我发现它是一种易于学习的语言,对于许多任务来说非常有用。目前我正在一个涉及GUI的python项目上工作,并且有人建议使用PyQt是设计GUI的最佳方式。然而,由于PyQt相当新,我没有找到很多关于它的文档或其中的例子。我找到的唯一有用的教程/书籍是
www.opendocspublishing.com/ pyqt / 但对于几乎没有GUI经验的人来说并不总是很清楚。有没有人有任何建议?
I am fairly new to Python. I have found it an easy language to
learn and a very usefull one for many tasks. Currently I am working
on a python project that involves a GUI and it was suggested that
PyQt is the best way to design that GUI. However since PyQt is
rather new, I have not found much documentation on it, or examples
in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for
someone with almost no GUI experience. Does anyone have any
suggestions?



http://www.riverbankcomputing.co.uk/pyqt/index.php


是一个很好的起点。订阅邮件列表。



http://www.riverbankcomputing.co.uk/pyqt/index.php

Is a good starting point. Subscribe to the mailing list.


这篇关于PyQt帮助和建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆