forked from AG_QGIS/Plugin_SN_Basis
20 lines
624 B
Python
20 lines
624 B
Python
# 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!") |