Files
training.python.beginner/training/demos/10-graphical-ui/data-conversion-demo/source/interface/mainwindow.py
2025-07-04 19:26:39 +02:00

20 lines
525 B
Python

from PySide6.QtWidgets import QMainWindow, QPushButton, QListWidget
class MainWindow(QMainWindow):
"""
Class written just for autocompletion and type hinting.
Lists dynamic attributes of the loaded window
so that PyCharm can know that the following attributes
exist in the loaded file.
The class is then used for type hinting in the
`WindowManager` class.
"""
file_button: QPushButton
button_csv_export: QPushButton
button_txt_export: QPushButton
list_widget: QListWidget