erste Version der Oberfläche zum Speichern der Variablen
This commit is contained in:
20
ui/tab_projekt.py
Normal file
20
ui/tab_projekt.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# tab_info.py
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtWidgets import QWidget
|
||||
import os
|
||||
|
||||
FORM_CLASS, _ = uic.loadUiType(os.path.join(
|
||||
os.path.dirname(__file__), 'tab_projekt.ui'))
|
||||
|
||||
class TabProjektWidget(QWidget, FORM_CLASS):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
# Zugriff auf den Button
|
||||
self.btn_save.setText("Sichern") # Text ändern
|
||||
self.btn_save.setEnabled(True) # Aktivieren
|
||||
self.btn_save.clicked.connect(self.speichern) # Klick-Event verbinden
|
||||
|
||||
def speichern(self):
|
||||
print("Speichern wurde geklickt!")
|
||||
Reference in New Issue
Block a user