启动 Python 和 PyQt - 教程、书籍、一般方法 [英] Starting Python and PyQt - Tutorials, Books, general approaches

查看:31
本文介绍了启动 Python 和 PyQt - 教程、书籍、一般方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去几年进行 Web 开发 (php/js) 后,我认为是时候看看不同的东西了.我认为查看编程中的不同领域以更好地理解一些不同的方法可能总是好的,所以我现在想看看 GUI 开发.

After doing web development (php/js) for the last few years i thought it is about time to also have a look at something different. I thought it may be always good to have look of different areas in programming to understand some different approaches better, so i now want to have look at GUI development.

作为编程语言,我确实选择了 Python,我现在慢慢掌握了基础知识,我也发现了这个问题:

As programming language i did choose Python where i now slowly get the basics and i also found this question:

如何学习 Python

已经包含好的链接和书籍建议.所以我现在主要是在寻找一些关于 PyQt 的信息:

which already contains good links and book proposals. So i am now mainly looking for some infos about PyQt:

  • 教程
  • 书籍
  • GUI 开发的一般提示

我已经看过一些教程,但没有找到任何真正好的教程.大多数都很简短,并没有真正解释任何事情.

I already looked at some tutorials, but didn't find any really good ones. Most were pretty short and didn't really explain anything.

提前感谢您的建议.

推荐答案

首先要意识到的是,与理解 PyQt 相比,理解 Qt 会获得更多的进展.大多数好的文档都讨论 Qt,而不是 PyQt,因此熟悉它们(以及如何将该代码转换为 PyQt 代码)是一种救命稻草.注意,我实际上并不推荐在 C++ 中编程 Qt;Python 是一种非常适合 Qt 编程的语言,因为它可以处理大量繁琐的工作,让您实际编写应用程序逻辑.

The first thing to realize is that you'll get more mileage out of understanding Qt than understanding PyQt. Most of the good documentation discusses Qt, not PyQt, so getting conversant with them (and how to convert that code to PyQt code) is a lifesaver. Note, I don't actually recommend programming Qt in C++; Python is a fantastic language for Qt programming, since it takes care of a lot of gruntwork, leaving you to actually code application logic.

我发现的关于使用 PyQt 的最好的书是Rapid GUI Programming with Python and Qt.前面有一个不错的 Python 小教程,然后带您了解构建 Qt 应用程序的基础知识.读完本书后,您应该对如何构建应用程序有了很好的了解,并对从哪里开始学习更高级的主题有了一些基本的了解.

The best book I've found for working with PyQt is Rapid GUI Programming with Python and Qt. It's got a nice small Python tutorial in the front, then takes you through the basics of building a Qt application. By the end of the book you should have a good idea of how to build an application, and some basic idea of where to start for more advanced topics.

另一个重要参考是PyQt 的绑定文档.特别关注新式信号槽支持";这是对旧样式的巨大改进.一旦您真正理解了该文档(而且它很短),您将能够非常轻松地浏览 Qt 文档.

The other critical reference is the bindings documentation for PyQt. Pay particular attention to the "New-style Signal and Slot Support"; it's a huge improvement over the old style. Once you really understand that document (and it's pretty short) you'll be able to navigate the Qt docs pretty easily.

这篇关于启动 Python 和 PyQt - 教程、书籍、一般方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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