To design a menu for a PyQt5 application, utilizing QMainWindow is essential. This type of menu can be observed in many applications and it displays right beneath the window bar, typically comprising of sub-menus like ‘file’ and ‘edit’.
The primary menu in PyQt5 can be constructed using the menuBar() method. Sub-menus can be effortlessly integrated using the addMenu(name) function. Here’s a simple demonstration:
We are trying to teach our students at High School level - Year 12, PyQt5 with Python. They have been given the task of developing GUI's and •Buttons well placed and easy to navigate •Screen elements from tutorials •Colour background on opening screen •Instructions screen or embedded in the program •Home button on each screen
Is it possible within PyQt5 to develop all those above to add to the game console? I know it must be, but while ok with Python code itself, PyQt5 is still a learning curve for teachers as well as students?
Any help would be very much appreciated.
Stuart Walsh
Frank•Thu, 15 Jun 2017
Hi Stuart,
These widgets are supported by PyQt, you can use them with any Python program. It sounds like you want a pyqt5 wizard or tabs.
What is the game console? If you have the code, you can add a PyQt5 GUI around it.
Leave a Reply:
We are trying to teach our students at High School level - Year 12, PyQt5 with Python. They have been given the task of developing GUI's and
•Buttons well placed and easy to navigate
•Screen elements from tutorials
•Colour background on opening screen
•Instructions screen or embedded in the program
•Home button on each screen
Is it possible within PyQt5 to develop all those above to add to the game console? I know it must be, but while ok with Python code itself, PyQt5 is still a learning curve for teachers as well as students?
Any help would be very much appreciated.
Stuart Walsh
Hi Stuart,
These widgets are supported by PyQt, you can use them with any Python program.
It sounds like you want a pyqt5 wizard or tabs.
What is the game console? If you have the code, you can add a PyQt5 GUI around it.