Browse Source

Fixed TimingWidget Element Grouping

kapture2 3 years ago
parent
commit
cb39315129
1 changed files with 6 additions and 10 deletions
  1. 6 10
      KCG/widgets/TimingWidget.py

+ 6 - 10
KCG/widgets/TimingWidget.py

@@ -160,10 +160,8 @@ class TimingPart(kcgw.KCGWidgets):
             "no_board_{}".format(self.board_id),
             "acquire_{}".format(self.board_id),
             "continuous_read_{}".format(board_id)], 
-                [
-                    self.fineAdcInput
-                ]
-                )
+            self.fineAdcInput
+            )
 
         self.bunchShiftLabel = self.createLabel(tr("Label", "Bunch Shift"))
 
@@ -175,10 +173,8 @@ class TimingPart(kcgw.KCGWidgets):
             "no_board_{}".format(self.board_id),
             "acquire_{}".format(self.board_id),
             "continuous_read_{}".format(board_id)], 
-                [
-                    self.bunchShiftInput
-                ]
-                )
+            self.bunchShiftInput
+            )
 
 
         #---------[ End ]---------
@@ -490,8 +486,8 @@ class TimingPart(kcgw.KCGWidgets):
 
 
         Elements.emptyGroup('timing_{}'.format(self.board_id))
-        Elements.removeItem(None, [self.fineAdcInput])
-        Elements.removeItem(None, [self.bunchShiftInput])
+        Elements.removeItem(None, self.fineAdcInput)
+        Elements.removeItem(None, self.bunchShiftInput)
         Elements.removeItem(None, [
                                     self.coarseInputTh,
                                     #self.coarseInputAdc,