Warning
This project provides no functionnality. It is only a PyQt6 Stub to start your own project. Many tutorials create a simple window using a QWidget that acts as the entry point of an app. We chose something else :)
The basic Main Window Application can be found in the app.py script.
Clone this project on your windows environment and run
git clone [email protected]:poivronjaune/PyQt6-MainWindow.git
cd PyQt6-MainWindowpython -m venv env
.\env\Scripts\Activatepython -m pip install --upgrade pip
pip install -e .python app.py
On linux use source bin/activate instead of .env\Scripts\Activate
For those who are familiar with python coding and packages, a PyQt6 Main Window application requires the following to be done:
- Create a QApplication with the event loop that manages events, widgets and user interaction
- Create a QMainWindow object on which to add other components
- Create QActions with icons, text and connect callback methods to each
- Attach a menuBar() to the QMainWindow and addActions() to this menuBar
- Attach a QToolBar() to the QMainWindow() and addActions() to this Toolbar
- Launch the EventLoop for the QApplication()
Checkout the Github Wiki for detailed explanations with step by step learning. We also discuss some basic object-oriented principles.
We hope you enjoy our presentation!
PyQt6 Documentation
The Qt Open Collaboration Effort
The PyQt6 Package from Pypi
Riverbank Computing - Creator of Qt Framework
Python Guis tutorials on PyQt6
Pyhton Tutprial on PyQt6
Coder's Legacy PyQt6 Tutorial Series
2015 PDF PyQt5.5 and 4