buttons etc disablen
This commit is contained in:
parent
586faff00f
commit
6a77cf8db0
@ -2,6 +2,4 @@ Beim Hinzufügen von Features fehlte das layer.updateFields()
|
||||
Beim Hinzufügen von Features fehlte wurde versucht eine viel zu große Pegelonline 'number' in einen Int zu stecken. War schwierig zu entdecken => provider.errors()
|
||||
DockWidget wurde ziemlich voll → Weiteres Widget nur für Grafen
|
||||
|
||||
buttons etc disablen
|
||||
|
||||
eigene styles erzeugen!
|
||||
|
||||
@ -230,6 +230,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="slHistoryStation">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
@ -307,6 +310,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnHistoryGo">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
||||
@ -392,7 +392,8 @@ class PoRunner(object):
|
||||
def _history_load_graph(self):
|
||||
print("_history_load_graph")
|
||||
|
||||
if self._history_stations_lock: # während dem Aktualisieren der Stationsliste treten change-signale auf, die werden hier abgefangen
|
||||
if not self.ui.slHistoryStation.isEnabled():
|
||||
# während dem Aktualisieren der Stationsliste treten change-signale auf, die werden hier abgefangen
|
||||
print("_history_load_graph: Stationsliste ist aktuell gesperrt")
|
||||
return
|
||||
|
||||
@ -432,7 +433,8 @@ class PoRunner(object):
|
||||
|
||||
def _history_load_stations(self):
|
||||
print("_history_load_stations")
|
||||
self._history_stations_lock = True # während dem Aktualisieren der Stationsliste treten change-signale auf, die werden so abgefangen
|
||||
self.ui.slHistoryStation.setEnabled(False)
|
||||
self.ui.btnHistoryGo.setEnabled(False)
|
||||
|
||||
# behalte die aktuelle Station, um sie (mit eventuell neuem Index) wiederherzustellen
|
||||
current_station = self.ui.slHistoryStation.currentText()
|
||||
@ -461,7 +463,8 @@ class PoRunner(object):
|
||||
station = self.ui.slHistoryStation.currentText()
|
||||
print("_history_load_stations: Bisherige Station \"%s\" nicht wiedergefunden. Nehme erste Station: %s" % (current_station, station))
|
||||
|
||||
self._history_stations_lock = False
|
||||
self.ui.slHistoryStation.setEnabled(True)
|
||||
self.ui.btnHistoryGo.setEnabled(True)
|
||||
|
||||
def _historyStation_set_by_shortname(self, shortname):
|
||||
index = self._historyStation_get_index_by_shortname(shortname)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user