有人可以向我推荐一个好的 PyQt/PySide 教程/书籍/视频系列吗?

发布于 2024-12-04 10:00:35 字数 89 浏览 0 评论 0原文

...或者使用 PyQT 进行快速 GUI 开发就是我所需要的一切吗?

我在网上查了一些,大部分都已经过时了,大部分代码都不起作用,或者写得很糟糕。

... or is Rapid GUI Development with PyQT everything that I'll ever need?

I went through some online and most of them are really outdated, most of the code does not work, or they are written terribly in general.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望喜 2024-12-11 10:00:35

我喜欢这个教程“PyQt by example”,可在以下地址找到:http://later .netmanagers.com.ar/stories/BBS47.html。然而,现在它很可能已经过时了。它做了有点夸张的“待办事项列表”应用程序,但尽管如此,它还是很清楚并且很好地说明了事情。如果我没记错的话,它还对 SqlAlchemy 或 Elixir 进行了合理的介绍。

对于开源框架,即使是具有如此大的规模和跨平台能力的框架,您也永远无法真正获得“您需要的一切”。但你引用的这本书无疑仍然是学习 PyQt 的最佳资源,除非你愿意看 C++ 示例。它有点像百科全书式的,当然也没有幽默感,但它涵盖了很多基础知识,并且以一种不太可能因库随着时间的推移而更新而失效的方式。

如果有人有其他好的建议,我很乐意听到它们,但我也看过,最好的建议都相当过时(尽管我没有发现它们太难工作)。

编辑:既然这个问题似乎得到了一些看法,我想我应该回来添加一些我发现的关于 PyQt 最有用的教程。尽管它们都带有一些警告,但它们都具有足够的实质价值:

  1. PyCon 2011 演讲:使用 QT 在 Python 中创建 GUI 应用程序(演讲 I 和演讲 II);这里唯一需要注意的是我找不到它们——在网上找到了略多于 100 个 pycon 2011 演讲,大部分镜像 blip.tv,但这些似乎不在任何地方......

  2. 非常好的核心信号介绍和插槽的想法:
    http://www.harshj.com/ 2009/05/14/pyqt-signals-slots-and-layouts-tutorial/;有点简短和概念化,但很有用。

  3. Pycon 2009 意大利演讲,提供相当全面的 qt pdf 教程(pdf 链接)
    http://chaos.troll.no/~dboddie/Python/PyConTre_Italia_2009/PyCon_Italia_2009_PyQt_for_Desktop_and_Embedded_Devices.pdf

  4. 命令提示符在线发布了相当于一本 pyqt 书籍的内容。我发现它非常有帮助,至少值得咨询具体问题,但它很旧(2001): http://www.commandprompt.com/community/pyqt/?page=pyqtbook

  5. 对特定小部件的用途非常好的介绍,但似乎为“专业版”电子书保留了更多有趣的知识。仍然有一定帮助: http://zetcode.com/tutorials/pyqt4/

  6. 显然python 的 eric-ide 提供了与 qtdesigner 的集成,他们的网站上有一个教程,将两者结合在一起,虽然我刚刚发现它,但它似乎很深入:http://eric-ide.python-projects.org/tutorials/MiniBrowser/index .html

I liked the tutorial, "PyQt by example," available at this address: http://lateral.netmanagers.com.ar/stories/BBS47.html. However, it may well be dated now. It does the somewhat overplayed "todo list" app, but nonetheless, it was clear and illustrated things well. It also provided a reasonable introduction to SqlAlchemy or Elixir, if I recall.

For open source frameworks, even one with so much scale and cross-platform punch, you can never really get "everything you'll ever need." But the book you cited is still undoubtedly the best resource for learning PyQt, unless you're willing to look at C++ examples. It's a bit encyclopedic, and certainly humorless, but it covers a lot of ground and does so in a way that's unlikely to be invalidated by updates to the library over time.

If anyone has other good recommendations, I'd enjoy hearing them, but I've looked too and the best ones are all reasonably dated (though I didn't find them too hard to get working).

Edit: Since it appears this question is getting some views, I thought I'd come back and add a few of what I found to be the most useful tutorials on PyQt. Though they all come with some caveats, they all have enough substance to be of value:

  1. PyCon 2011 Talks: Creating GUI Applications in Python Using QT (talk I and talk II); only caveat here is I can't find them-- have found slightly more than 100 pycon 2011 talks online, mostly mirroring blip.tv, but these don't seem to be anywhere...

  2. Very good intro to core signals and slots ideas:
    http://www.harshj.com/2009/05/14/pyqt-signals-slots-and-layouts-tutorial/; somewhat short and conceptual but useful.

  3. Pycon 2009 talk in Italy with quite comprehensive pdf tutorial for qt (link to pdf)
    http://chaos.troll.no/~dboddie/Python/PyConTre_Italia_2009/PyCon_Italia_2009_PyQt_for_Desktop_and_Embedded_Devices.pdf

  4. Command Prompt published what amounts to a pyqt book online. I found it very helpful and it's worth consulting with specific questions at least, but it's very old (2001): http://www.commandprompt.com/community/pyqt/?page=pyqtbook

  5. Pretty good intro to specific widgets' uses, but seems to have withheld more interesting knowledge for a 'pro-version' ebook. Still was semi-helpful: http://zetcode.com/tutorials/pyqt4/

  6. Apparently the eric-ide for python provides integration with qtdesigner and their site hosts a tutorial looking at the two together, which appears to be in depth though I only just discovered it: http://eric-ide.python-projects.org/tutorials/MiniBrowser/index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文