@@ -114,7 +114,9 @@ def __init__(self, iface):
114114 self .time_matrix = None
115115
116116 # Params for first tab:
117- self .dlg .backgroundLayersListWidget .currentRowChanged .connect (self .state_ok_button )
117+ self .dlg .backgroundLayersListWidget .currentRowChanged .connect (
118+ self .state_ok_button
119+ )
118120 self .dlg .backgroundLayersListWidget .itemChanged .connect (self .state_ok_button )
119121 self .dlg .pointLayerComboBox .setFilters (QgsMapLayerProxyModel .PointLayer )
120122 self .dlg .pointLayerComboBox .layerChanged .connect (self .fill_field_combo_box )
@@ -129,7 +131,9 @@ def __init__(self, iface):
129131 self .dlg .refFeatureComboBox .activated .connect (self .state_ok_button )
130132
131133 # Params for second tab:
132- self .dlg .backgroundLayersListWidget_2 .currentRowChanged .connect (self .state_ok_button )
134+ self .dlg .backgroundLayersListWidget_2 .currentRowChanged .connect (
135+ self .state_ok_button
136+ )
133137 self .dlg .backgroundLayersListWidget_2 .itemChanged .connect (self .state_ok_button )
134138 self .dlg .pointLayerComboBox_2 .setFilters (QgsMapLayerProxyModel .PointLayer )
135139 self .dlg .pointLayerComboBox_2 .layerChanged .connect (
@@ -158,9 +162,9 @@ def __init__(self, iface):
158162 def update_layers_in_list ():
159163 # List the layers
160164 layers = [
161- l
162- for l in QgsProject .instance ().mapLayers ().values ()
163- if l .type () == QgsMapLayerType .VectorLayer
165+ layer
166+ for layer in QgsProject .instance ().mapLayers ().values ()
167+ if layer .type () == QgsMapLayerType .VectorLayer
164168 ]
165169 items = [f"{ i .name ()} [{ i .crs ().authid ()} ]" for i in layers ]
166170
@@ -549,7 +553,7 @@ def state_ok_button(self):
549553 d = self .dlg .mFieldComboBox .currentIndex ()
550554 e = self .dlg .matrixQgsFileWidget .filePath ()
551555
552- if a == - 1 or b == False :
556+ if a == - 1 or not b :
553557 result = False
554558
555559 else :
@@ -579,7 +583,7 @@ def state_ok_button(self):
579583 e = self .dlg .mImageFieldComboBox_2 .currentIndex ()
580584
581585 if (
582- a == False
586+ not a
583587 or b == - 1
584588 or c == - 1
585589 or d == - 1
0 commit comments