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()
|
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
|
DockWidget wurde ziemlich voll → Weiteres Widget nur für Grafen
|
||||||
|
|
||||||
buttons etc disablen
|
|
||||||
|
|
||||||
eigene styles erzeugen!
|
eigene styles erzeugen!
|
||||||
|
|||||||
@ -230,6 +230,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="slHistoryStation">
|
<widget class="QComboBox" name="slHistoryStation">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -307,6 +310,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="btnHistoryGo">
|
<widget class="QPushButton" name="btnHistoryGo">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
|||||||
@ -392,7 +392,8 @@ class PoRunner(object):
|
|||||||
def _history_load_graph(self):
|
def _history_load_graph(self):
|
||||||
print("_history_load_graph")
|
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")
|
print("_history_load_graph: Stationsliste ist aktuell gesperrt")
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -432,7 +433,8 @@ class PoRunner(object):
|
|||||||
|
|
||||||
def _history_load_stations(self):
|
def _history_load_stations(self):
|
||||||
print("_history_load_stations")
|
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
|
# behalte die aktuelle Station, um sie (mit eventuell neuem Index) wiederherzustellen
|
||||||
current_station = self.ui.slHistoryStation.currentText()
|
current_station = self.ui.slHistoryStation.currentText()
|
||||||
@ -461,7 +463,8 @@ class PoRunner(object):
|
|||||||
station = self.ui.slHistoryStation.currentText()
|
station = self.ui.slHistoryStation.currentText()
|
||||||
print("_history_load_stations: Bisherige Station \"%s\" nicht wiedergefunden. Nehme erste Station: %s" % (current_station, station))
|
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):
|
def _historyStation_set_by_shortname(self, shortname):
|
||||||
index = self._historyStation_get_index_by_shortname(shortname)
|
index = self._historyStation_get_index_by_shortname(shortname)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user