mirror of
https://github.com/pythonguis/pythonguis-examples.git
synced 2025-01-13 16:42:55 +08:00
b74592ea41
Break down examples into module files to make easier to read. Use full-definitions on Enums (PyQt6 compatible, better documenting). Add fixes for Qt6 versions & some general bugfixes.
19 lines
319 B
Python
19 lines
319 B
Python
import sys
|
|
|
|
from password import PasswordEdit
|
|
from PyQt6.QtWidgets import QApplication, QMainWindow
|
|
|
|
|
|
class Window(QMainWindow):
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
password = PasswordEdit()
|
|
self.setCentralWidget(password)
|
|
|
|
|
|
app = QApplication(sys.argv)
|
|
w = Window()
|
|
w.show()
|
|
app.exec()
|