본문 바로가기

PyQt5_47

PyQt6 and PySide6 —What’s the difference? Appendix C: PyQt6 and PySide6 — What’s the difference? If you start building Python application with Qt6 you’ll soon discover that there are in fact two packages which you can use to do this — PyQt6 and PySide6. In this short chapter I’ll run through why exactly this is, whether you need to care (spoiler: you really don’t), what the (few) differences are and how to work around them. By the end y.. 2023. 3. 16.
Translating C++ Appendix B: Translating C++ Examples to Python When writing applications with PyQt6 we are really writing applications with Qt. PyQt6 acts as a wrapper around the Qt libraries, translating Python method calls to C++, handling type conversions and transparently creating Python objects to represent Qt objects in your applications. The result of all this cleverness is that you can use Qt from Pytho.. 2023. 3. 16.
Installing PyQt6 Appendix A: Installing PyQt6 Before you start coding you will first need to have a working installation of PyQt6 on your system. If you don’t have PyQt6 set up yet, the following sections will guide you through how to do this on Windows, macOS and Linux. q Note that the following instructions are only for installation of the GPL licensed version of PyQt. If you need to use PyQt in a non-GPL proj.. 2023. 3. 16.
Moonsweeper 42. Moonsweeper Explore the mysterious moon of Q’tee without getting too close to the alien natives! Moonsweeper is a single-player puzzle video game. The objective of the game is to explore the area around your landed space rocket, without coming too close to the deadly B’ug aliens. Your trusty tricounter will tell you the number of B’ugs in the vicinity. ë Suggested reading This application ma.. 2023. 3. 16.
Mozzarella Ashbadger 41. Mozzarella Ashbadger Mozzarella Ashbadger is the latest revolution in web browsing! Go back and forward! Print! Save files! Get help! (you’ll need it). Any similarity to other browsers is entirely coincidental. Figure 269. Mozzarella Ashbadger. ë This application makes use of features covered in Signals & Slots, Extending Signals and Widgets. The source code for Mozzarella Ashbadger is provi.. 2023. 3. 16.
Using Custom Widgets in QtDesigner 23. Using Custom Widgets in Qt Designer In the previous chapter we built a custom PowerBar widget. The resulting widget can be used as-is in your own applications by importing and adding to layouts, just as for any built-in widget. But what if you’re building your application UI using Qt Designer? Can you add custom widgets there too? The answer is — yes! In this short chapter we’ll step through.. 2023. 3. 16.
PyQt6 and PySide6 — What’s the difference? 2023. 3. 13.
Translating C++ Examples to Python. 2023. 3. 13.
Creating a Linux Package with 40. Creating a Linux Package with In an previous chapter we used PyInstaller to bundle the application into a Linux executable, along with the associated data files. The output of this bundling process is a folder which can be shared with other users. However, in order to make it easy for them to install it on their system, we need to create a Linux package. Packages are distributable files whic.. 2023. 3. 13.