How to Install PyQt6 in Window 10? Then a create a GUI application window using Python.
This Module is very useful for making application for AI, Data Science, and Machine learning
**************************************************************************
Code:
from PyQt6.Qtwidgets import QApplicagtion, QMainWindow
import sys
app = AQpplication(sys.argv)
window = QMainWindow()
window.statusBar().showMessage("Welcome to Free Tutorial Tv")
window.menuBar().addmenu("File")
window.show()
sys.exit(app.exec())
_______________________________________________________________________
1
00:00:01,690 -- 00:00:05,800
In this lesson we're going to learn about different types of window classes
2
00:00:06,790 -- 00:00:11,710
Now, we have already saw that how you can build your first simple GUI application using PyQt.
3
00:00:12,660 -- 00:00:17,430
Also, we have already mentioned it, that there are three different window type classes that we can
4
00:00:17,430 -- 00:00:18,330
use in PyQt.
5
00:00:19,870 -- 00:00:21,700
Now, the first one is QMainWindow.
6
00:00:22,270 -- 00:00:28,540
The QMainWindow class, provides a main application window a main window provides a framework
7
00:00:28,540 -- 00:00:30,700
for building an applications user interface.
8
00:00:31,510 -- 00:00:36,880
PyQt has QMainWindow and its related classes for main window management.
9
00:00:37,900 -- 00:00:45,370
QMainWindow has its own layout, to which you can add QToolbars, QDockableWidgets,
10
00:00:45,370 -- 00:00:47,110
QMenuBar and also QStatusBar.
11
00:00:48,460 -- 00:00:53,290
Another type of window that we have, window class that we have that's called QDialog.
12
00:00:54,560 -- 00:01:01,610
Now, the QDialog class is the base class of dialog window and a dialog window is a top level window
13
00:01:01,610 -- 00:01:09,920
mostly used for short term tasks and brief communications with the user, QDialog maybe model
14
00:01:09,950 -- 00:01:11,900
and also modeless.
15
00:01:13,100 -- 00:01:14,660
And the third type is QWidget.
Информация по комментариям в разработке