-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQtPowerMeter.py
1376 lines (1369 loc) · 70 KB
/
QtPowerMeter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'powerMeter.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1024, 600)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setAutoFillBackground(False)
self.tabWidget.setObjectName("tabWidget")
self.displayTab = QtWidgets.QWidget()
self.displayTab.setObjectName("displayTab")
self.gridLayout_11 = QtWidgets.QGridLayout(self.displayTab)
self.gridLayout_11.setObjectName("gridLayout_11")
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.rangeSlider = QtWidgets.QSlider(self.displayTab)
self.rangeSlider.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rangeSlider.sizePolicy().hasHeightForWidth())
self.rangeSlider.setSizePolicy(sizePolicy)
self.rangeSlider.setMinimum(0)
self.rangeSlider.setMaximum(4)
self.rangeSlider.setSingleStep(1)
self.rangeSlider.setPageStep(1)
self.rangeSlider.setSliderPosition(0)
self.rangeSlider.setTracking(False)
self.rangeSlider.setOrientation(QtCore.Qt.Horizontal)
self.rangeSlider.setTickPosition(QtWidgets.QSlider.TicksBothSides)
self.rangeSlider.setObjectName("rangeSlider")
self.gridLayout_3.addWidget(self.rangeSlider, 0, 0, 1, 2)
self.GHzSlider = QtWidgets.QSlider(self.displayTab)
self.GHzSlider.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.GHzSlider.sizePolicy().hasHeightForWidth())
self.GHzSlider.setSizePolicy(sizePolicy)
self.GHzSlider.setMinimum(0)
self.GHzSlider.setMaximum(6000)
self.GHzSlider.setSingleStep(100)
self.GHzSlider.setPageStep(500)
self.GHzSlider.setProperty("value", 1296)
self.GHzSlider.setTracking(False)
self.GHzSlider.setOrientation(QtCore.Qt.Horizontal)
self.GHzSlider.setTickPosition(QtWidgets.QSlider.TicksBothSides)
self.GHzSlider.setTickInterval(100)
self.GHzSlider.setObjectName("GHzSlider")
self.gridLayout_3.addWidget(self.GHzSlider, 0, 2, 1, 11)
self.autoRangeButton = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.autoRangeButton.sizePolicy().hasHeightForWidth())
self.autoRangeButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.autoRangeButton.setFont(font)
self.autoRangeButton.setChecked(True)
self.autoRangeButton.setObjectName("autoRangeButton")
self.dBmRange = QtWidgets.QButtonGroup(MainWindow)
self.dBmRange.setObjectName("dBmRange")
self.dBmRange.addButton(self.autoRangeButton)
self.gridLayout_3.addWidget(self.autoRangeButton, 1, 0, 1, 1)
self.setRangeButton = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.setRangeButton.sizePolicy().hasHeightForWidth())
self.setRangeButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.setRangeButton.setFont(font)
self.setRangeButton.setObjectName("setRangeButton")
self.dBmRange.addButton(self.setRangeButton)
self.gridLayout_3.addWidget(self.setRangeButton, 1, 1, 1, 1)
self.HF = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HF.sizePolicy().hasHeightForWidth())
self.HF.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.HF.setFont(font)
self.HF.setObjectName("HF")
self.hamBands = QtWidgets.QButtonGroup(MainWindow)
self.hamBands.setObjectName("hamBands")
self.hamBands.addButton(self.HF)
self.gridLayout_3.addWidget(self.HF, 1, 2, 1, 1)
self.m6 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.m6.sizePolicy().hasHeightForWidth())
self.m6.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.m6.setFont(font)
self.m6.setObjectName("m6")
self.hamBands.addButton(self.m6)
self.gridLayout_3.addWidget(self.m6, 1, 3, 1, 1)
self.m4 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.m4.sizePolicy().hasHeightForWidth())
self.m4.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.m4.setFont(font)
self.m4.setObjectName("m4")
self.hamBands.addButton(self.m4)
self.gridLayout_3.addWidget(self.m4, 1, 4, 1, 1)
self.m2 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.m2.sizePolicy().hasHeightForWidth())
self.m2.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.m2.setFont(font)
self.m2.setObjectName("m2")
self.hamBands.addButton(self.m2)
self.gridLayout_3.addWidget(self.m2, 1, 5, 1, 1)
self.cm70 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cm70.sizePolicy().hasHeightForWidth())
self.cm70.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.cm70.setFont(font)
self.cm70.setObjectName("cm70")
self.hamBands.addButton(self.cm70)
self.gridLayout_3.addWidget(self.cm70, 1, 6, 1, 1)
self.cm23 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cm23.sizePolicy().hasHeightForWidth())
self.cm23.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.cm23.setFont(font)
self.cm23.setChecked(True)
self.cm23.setObjectName("cm23")
self.hamBands.addButton(self.cm23)
self.gridLayout_3.addWidget(self.cm23, 1, 7, 1, 1)
self.cm13 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cm13.sizePolicy().hasHeightForWidth())
self.cm13.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.cm13.setFont(font)
self.cm13.setObjectName("cm13")
self.hamBands.addButton(self.cm13)
self.gridLayout_3.addWidget(self.cm13, 1, 8, 1, 1)
self.cm9 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cm9.sizePolicy().hasHeightForWidth())
self.cm9.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.cm9.setFont(font)
self.cm9.setObjectName("cm9")
self.hamBands.addButton(self.cm9)
self.gridLayout_3.addWidget(self.cm9, 1, 9, 1, 1)
self.cm6 = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cm6.sizePolicy().hasHeightForWidth())
self.cm6.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.cm6.setFont(font)
self.cm6.setObjectName("cm6")
self.hamBands.addButton(self.cm6)
self.gridLayout_3.addWidget(self.cm6, 1, 10, 1, 1)
self.noBand = QtWidgets.QRadioButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.noBand.sizePolicy().hasHeightForWidth())
self.noBand.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.noBand.setFont(font)
self.noBand.setObjectName("noBand")
self.hamBands.addButton(self.noBand)
self.gridLayout_3.addWidget(self.noBand, 1, 11, 1, 1)
self.freqBox = QtWidgets.QSpinBox(self.displayTab)
self.freqBox.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.freqBox.sizePolicy().hasHeightForWidth())
self.freqBox.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.freqBox.setFont(font)
self.freqBox.setFrame(False)
self.freqBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.freqBox.setReadOnly(True)
self.freqBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.freqBox.setKeyboardTracking(False)
self.freqBox.setMinimum(0)
self.freqBox.setMaximum(6000)
self.freqBox.setSingleStep(100)
self.freqBox.setProperty("value", 1296)
self.freqBox.setObjectName("freqBox")
self.gridLayout_3.addWidget(self.freqBox, 1, 12, 1, 1)
self.gridLayout_11.addLayout(self.gridLayout_3, 2, 0, 1, 1)
self.gridLayout_7 = QtWidgets.QGridLayout()
self.gridLayout_7.setObjectName("gridLayout_7")
self.label_14 = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth())
self.label_14.setSizePolicy(sizePolicy)
self.label_14.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_14.setFont(font)
self.label_14.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label_14.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_14.setObjectName("label_14")
self.gridLayout_7.addWidget(self.label_14, 0, 4, 1, 1)
self.runButton = QtWidgets.QPushButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.runButton.sizePolicy().hasHeightForWidth())
self.runButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.runButton.setFont(font)
self.runButton.setIconSize(QtCore.QSize(10, 16))
self.runButton.setObjectName("runButton")
self.gridLayout_7.addWidget(self.runButton, 0, 6, 1, 1)
self.label_9 = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
self.label_9.setSizePolicy(sizePolicy)
self.label_9.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_9.setFont(font)
self.label_9.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label_9.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_9.setObjectName("label_9")
self.gridLayout_7.addWidget(self.label_9, 0, 0, 1, 1)
self.measurementRate = QtWidgets.QDoubleSpinBox(self.displayTab)
self.measurementRate.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.measurementRate.sizePolicy().hasHeightForWidth())
self.measurementRate.setSizePolicy(sizePolicy)
self.measurementRate.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.measurementRate.setFont(font)
self.measurementRate.setFrame(True)
self.measurementRate.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.measurementRate.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.measurementRate.setPrefix("")
self.measurementRate.setDecimals(0)
self.measurementRate.setMaximum(50000.0)
self.measurementRate.setObjectName("measurementRate")
self.gridLayout_7.addWidget(self.measurementRate, 1, 3, 1, 1)
self.stopButton = QtWidgets.QPushButton(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stopButton.sizePolicy().hasHeightForWidth())
self.stopButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.stopButton.setFont(font)
self.stopButton.setIconSize(QtCore.QSize(10, 16))
self.stopButton.setObjectName("stopButton")
self.gridLayout_7.addWidget(self.stopButton, 2, 6, 1, 1)
self.powerWatts = QtWidgets.QDoubleSpinBox(self.displayTab)
self.powerWatts.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.powerWatts.sizePolicy().hasHeightForWidth())
self.powerWatts.setSizePolicy(sizePolicy)
self.powerWatts.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.powerWatts.setFont(font)
self.powerWatts.setFrame(True)
self.powerWatts.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.powerWatts.setReadOnly(True)
self.powerWatts.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.powerWatts.setPrefix("")
self.powerWatts.setDecimals(2)
self.powerWatts.setMinimum(0.0)
self.powerWatts.setMaximum(10000.0)
self.powerWatts.setSingleStep(0.01)
self.powerWatts.setProperty("value", 0.0)
self.powerWatts.setObjectName("powerWatts")
self.gridLayout_7.addWidget(self.powerWatts, 2, 2, 1, 1)
self.label_10 = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy)
self.label_10.setMinimumSize(QtCore.QSize(0, 0))
self.label_10.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_10.setFont(font)
self.label_10.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label_10.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_10.setWordWrap(False)
self.label_10.setObjectName("label_10")
self.gridLayout_7.addWidget(self.label_10, 0, 1, 1, 1)
self.label_20 = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_20.sizePolicy().hasHeightForWidth())
self.label_20.setSizePolicy(sizePolicy)
self.label_20.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_20.setFont(font)
self.label_20.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label_20.setObjectName("label_20")
self.gridLayout_7.addWidget(self.label_20, 0, 3, 1, 1)
self.sensorPower = QtWidgets.QDoubleSpinBox(self.displayTab)
self.sensorPower.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.sensorPower.sizePolicy().hasHeightForWidth())
self.sensorPower.setSizePolicy(sizePolicy)
self.sensorPower.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.sensorPower.setFont(font)
self.sensorPower.setAutoFillBackground(False)
self.sensorPower.setFrame(True)
self.sensorPower.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.sensorPower.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.sensorPower.setDecimals(1)
self.sensorPower.setMinimum(-70.0)
self.sensorPower.setMaximum(20.0)
self.sensorPower.setSingleStep(0.01)
self.sensorPower.setProperty("value", -70.0)
self.sensorPower.setObjectName("sensorPower")
self.gridLayout_7.addWidget(self.sensorPower, 1, 0, 1, 1)
self.label_12 = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
self.label_12.setSizePolicy(sizePolicy)
self.label_12.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_12.setFont(font)
self.label_12.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label_12.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_12.setWordWrap(True)
self.label_12.setObjectName("label_12")
self.gridLayout_7.addWidget(self.label_12, 0, 2, 1, 1)
self.inputPower = QtWidgets.QDoubleSpinBox(self.displayTab)
self.inputPower.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.inputPower.sizePolicy().hasHeightForWidth())
self.inputPower.setSizePolicy(sizePolicy)
self.inputPower.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.inputPower.setFont(font)
self.inputPower.setFrame(True)
self.inputPower.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.inputPower.setReadOnly(True)
self.inputPower.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.inputPower.setDecimals(1)
self.inputPower.setMinimum(-70.0)
self.inputPower.setMaximum(63.0)
self.inputPower.setSingleStep(0.01)
self.inputPower.setProperty("value", -70.0)
self.inputPower.setObjectName("inputPower")
self.gridLayout_7.addWidget(self.inputPower, 1, 2, 1, 1)
self.warning = QtWidgets.QLabel(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.warning.sizePolicy().hasHeightForWidth())
self.warning.setSizePolicy(sizePolicy)
self.warning.setMinimumSize(QtCore.QSize(0, 0))
self.warning.setBaseSize(QtCore.QSize(10, 0))
font = QtGui.QFont()
font.setPointSize(10)
self.warning.setFont(font)
self.warning.setStyleSheet("color: rgb(255, 0, 0);")
self.warning.setFrameShape(QtWidgets.QFrame.Box)
self.warning.setAlignment(QtCore.Qt.AlignCenter)
self.warning.setObjectName("warning")
self.gridLayout_7.addWidget(self.warning, 1, 6, 1, 1)
self.totalLoss = QtWidgets.QDoubleSpinBox(self.displayTab)
self.totalLoss.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.totalLoss.sizePolicy().hasHeightForWidth())
self.totalLoss.setSizePolicy(sizePolicy)
self.totalLoss.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.totalLoss.setFont(font)
self.totalLoss.setAutoFillBackground(False)
self.totalLoss.setFrame(True)
self.totalLoss.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.totalLoss.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.totalLoss.setDecimals(2)
self.totalLoss.setMinimum(-120.0)
self.totalLoss.setMaximum(120.0)
self.totalLoss.setSingleStep(0.01)
self.totalLoss.setObjectName("totalLoss")
self.gridLayout_7.addWidget(self.totalLoss, 1, 1, 1, 1)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_7.addItem(spacerItem, 0, 5, 1, 1)
self.calQualLabel = QtWidgets.QLabel(self.displayTab)
self.calQualLabel.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calQualLabel.sizePolicy().hasHeightForWidth())
self.calQualLabel.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Sans Serif")
font.setPointSize(10)
self.calQualLabel.setFont(font)
self.calQualLabel.setAutoFillBackground(False)
self.calQualLabel.setFrameShape(QtWidgets.QFrame.Box)
self.calQualLabel.setLineWidth(1)
self.calQualLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.calQualLabel.setIndent(-1)
self.calQualLabel.setObjectName("calQualLabel")
self.gridLayout_7.addWidget(self.calQualLabel, 1, 4, 1, 2)
self.gridLayout_11.addLayout(self.gridLayout_7, 3, 0, 1, 1)
self.gridLayout_10 = QtWidgets.QGridLayout()
self.gridLayout_10.setObjectName("gridLayout_10")
self.label_6 = QtWidgets.QLabel(self.displayTab)
font = QtGui.QFont()
font.setPointSize(8)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setWordWrap(True)
self.label_6.setObjectName("label_6")
self.gridLayout_10.addWidget(self.label_6, 1, 4, 1, 1)
self.spiNoise = QtWidgets.QLabel(self.displayTab)
self.spiNoise.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spiNoise.sizePolicy().hasHeightForWidth())
self.spiNoise.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.spiNoise.setFont(font)
self.spiNoise.setAutoFillBackground(False)
self.spiNoise.setStyleSheet("color: rgb(255, 0, 0);")
self.spiNoise.setText("")
self.spiNoise.setAlignment(QtCore.Qt.AlignCenter)
self.spiNoise.setObjectName("spiNoise")
self.gridLayout_10.addWidget(self.spiNoise, 1, 3, 1, 1)
self.powerUnit = QtWidgets.QLabel(self.displayTab)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.powerUnit.setFont(font)
self.powerUnit.setLayoutDirection(QtCore.Qt.LeftToRight)
self.powerUnit.setAlignment(QtCore.Qt.AlignCenter)
self.powerUnit.setObjectName("powerUnit")
self.gridLayout_10.addWidget(self.powerUnit, 1, 0, 1, 1)
self.memorySize = QtWidgets.QSlider(self.displayTab)
self.memorySize.setStyleSheet("")
self.memorySize.setMinimum(5)
self.memorySize.setMaximum(250)
self.memorySize.setSingleStep(10)
self.memorySize.setPageStep(100)
self.memorySize.setProperty("value", 50)
self.memorySize.setTracking(False)
self.memorySize.setOrientation(QtCore.Qt.Vertical)
self.memorySize.setTickPosition(QtWidgets.QSlider.TicksBothSides)
self.memorySize.setTickInterval(10)
self.memorySize.setObjectName("memorySize")
self.gridLayout_10.addWidget(self.memorySize, 0, 4, 1, 1)
self.meterWidget = AnalogGaugeWidget(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.meterWidget.sizePolicy().hasHeightForWidth())
self.meterWidget.setSizePolicy(sizePolicy)
self.meterWidget.setAutoFillBackground(True)
self.meterWidget.setStyleSheet("")
self.meterWidget.setObjectName("meterWidget")
self.gridLayout_10.addWidget(self.meterWidget, 0, 0, 1, 1)
self.averaging = QtWidgets.QSlider(self.displayTab)
self.averaging.setTabletTracking(False)
self.averaging.setStyleSheet("")
self.averaging.setMinimum(1)
self.averaging.setMaximum(1000)
self.averaging.setSingleStep(10)
self.averaging.setPageStep(100)
self.averaging.setProperty("value", 50)
self.averaging.setTracking(False)
self.averaging.setOrientation(QtCore.Qt.Vertical)
self.averaging.setTickPosition(QtWidgets.QSlider.TicksBothSides)
self.averaging.setTickInterval(100)
self.averaging.setObjectName("averaging")
self.gridLayout_10.addWidget(self.averaging, 0, 1, 1, 1)
self.label_3 = QtWidgets.QLabel(self.displayTab)
font = QtGui.QFont()
font.setPointSize(8)
self.label_3.setFont(font)
self.label_3.setLayoutDirection(QtCore.Qt.LeftToRight)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setWordWrap(True)
self.label_3.setObjectName("label_3")
self.gridLayout_10.addWidget(self.label_3, 1, 1, 1, 1)
self.graphWidget = PlotWidget(self.displayTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphWidget.sizePolicy().hasHeightForWidth())
self.graphWidget.setSizePolicy(sizePolicy)
self.graphWidget.setAutoFillBackground(True)
self.graphWidget.setStyleSheet("")
self.graphWidget.setObjectName("graphWidget")
self.gridLayout_10.addWidget(self.graphWidget, 0, 2, 1, 2)
self.gridLayout_11.addLayout(self.gridLayout_10, 0, 0, 1, 1)
self.tabWidget.addTab(self.displayTab, "")
self.deviceTab = QtWidgets.QWidget()
self.deviceTab.setObjectName("deviceTab")
self.gridLayout_8 = QtWidgets.QGridLayout(self.deviceTab)
self.gridLayout_8.setObjectName("gridLayout_8")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.delAllFreq = QtWidgets.QPushButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.delAllFreq.sizePolicy().hasHeightForWidth())
self.delAllFreq.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.delAllFreq.setFont(font)
self.delAllFreq.setObjectName("delAllFreq")
self.gridLayout_2.addWidget(self.delAllFreq, 5, 8, 1, 1)
self.assetID = QtWidgets.QSpinBox(self.deviceTab)
self.assetID.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.assetID.sizePolicy().hasHeightForWidth())
self.assetID.setSizePolicy(sizePolicy)
self.assetID.setMinimumSize(QtCore.QSize(100, 0))
self.assetID.setMaximumSize(QtCore.QSize(136, 16777215))
font = QtGui.QFont()
font.setPointSize(12)
self.assetID.setFont(font)
self.assetID.setAutoFillBackground(False)
self.assetID.setReadOnly(False)
self.assetID.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.assetID.setMaximum(9999)
self.assetID.setObjectName("assetID")
self.gridLayout_2.addWidget(self.assetID, 1, 1, 1, 1)
self.label_22 = QtWidgets.QLabel(self.deviceTab)
self.label_22.setText("")
self.label_22.setObjectName("label_22")
self.gridLayout_2.addWidget(self.label_22, 3, 8, 1, 1)
self.label_8 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setWordWrap(True)
self.label_8.setObjectName("label_8")
self.gridLayout_2.addWidget(self.label_8, 0, 8, 1, 1)
self.previousDevice = QtWidgets.QToolButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.previousDevice.sizePolicy().hasHeightForWidth())
self.previousDevice.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.previousDevice.setFont(font)
self.previousDevice.setIconSize(QtCore.QSize(20, 25))
self.previousDevice.setArrowType(QtCore.Qt.LeftArrow)
self.previousDevice.setObjectName("previousDevice")
self.gridLayout_2.addWidget(self.previousDevice, 1, 0, 1, 1)
self.addFreq = QtWidgets.QToolButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.addFreq.sizePolicy().hasHeightForWidth())
self.addFreq.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.addFreq.setFont(font)
self.addFreq.setObjectName("addFreq")
self.gridLayout_2.addWidget(self.addFreq, 4, 7, 1, 1)
self.deleteDevice = QtWidgets.QToolButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.deleteDevice.sizePolicy().hasHeightForWidth())
self.deleteDevice.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(False)
font.setWeight(50)
self.deleteDevice.setFont(font)
self.deleteDevice.setIconSize(QtCore.QSize(20, 20))
self.deleteDevice.setObjectName("deleteDevice")
self.gridLayout_2.addWidget(self.deleteDevice, 2, 8, 1, 1)
self.nextDevice = QtWidgets.QToolButton(self.deviceTab)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.nextDevice.setFont(font)
self.nextDevice.setIconSize(QtCore.QSize(20, 25))
self.nextDevice.setArrowType(QtCore.Qt.RightArrow)
self.nextDevice.setObjectName("nextDevice")
self.gridLayout_2.addWidget(self.nextDevice, 1, 2, 1, 1)
self.label_16 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth())
self.label_16.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_16.setFont(font)
self.label_16.setWordWrap(True)
self.label_16.setObjectName("label_16")
self.gridLayout_2.addWidget(self.label_16, 3, 1, 1, 1)
self.inUse = QtWidgets.QCheckBox(self.deviceTab)
self.inUse.setLayoutDirection(QtCore.Qt.LeftToRight)
self.inUse.setText("")
self.inUse.setObjectName("inUse")
self.gridLayout_2.addWidget(self.inUse, 1, 3, 1, 1, QtCore.Qt.AlignHCenter)
self.loss = QtWidgets.QDoubleSpinBox(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.loss.sizePolicy().hasHeightForWidth())
self.loss.setSizePolicy(sizePolicy)
self.loss.setMinimumSize(QtCore.QSize(100, 0))
font = QtGui.QFont()
font.setPointSize(12)
self.loss.setFont(font)
self.loss.setPrefix("")
self.loss.setSuffix("")
self.loss.setDecimals(2)
self.loss.setMinimum(-100.0)
self.loss.setMaximum(0.0)
self.loss.setSingleStep(1.0)
self.loss.setProperty("value", 0.0)
self.loss.setObjectName("loss")
self.gridLayout_2.addWidget(self.loss, 4, 4, 1, 1)
self.description = QtWidgets.QLineEdit(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.description.sizePolicy().hasHeightForWidth())
self.description.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.description.setFont(font)
self.description.setLayoutDirection(QtCore.Qt.LeftToRight)
self.description.setObjectName("description")
self.gridLayout_2.addWidget(self.description, 1, 9, 1, 1)
self.label_15 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth())
self.label_15.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_15.setFont(font)
self.label_15.setWordWrap(True)
self.label_15.setObjectName("label_15")
self.gridLayout_2.addWidget(self.label_15, 3, 5, 1, 1)
self.label_2 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setKerning(True)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setWordWrap(True)
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 0, 5, 1, 1)
self.label_13 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth())
self.label_13.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_13.setFont(font)
self.label_13.setWordWrap(True)
self.label_13.setObjectName("label_13")
self.gridLayout_2.addWidget(self.label_13, 3, 4, 1, 1)
self.identifier = QtWidgets.QLineEdit(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.identifier.sizePolicy().hasHeightForWidth())
self.identifier.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.identifier.setFont(font)
self.identifier.setObjectName("identifier")
self.gridLayout_2.addWidget(self.identifier, 1, 8, 1, 1)
self.previousFreq = QtWidgets.QToolButton(self.deviceTab)
self.previousFreq.setIconSize(QtCore.QSize(20, 25))
self.previousFreq.setArrowType(QtCore.Qt.LeftArrow)
self.previousFreq.setObjectName("previousFreq")
self.gridLayout_2.addWidget(self.previousFreq, 4, 0, 1, 1)
self.delFreq = QtWidgets.QToolButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.delFreq.sizePolicy().hasHeightForWidth())
self.delFreq.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(False)
font.setWeight(50)
self.delFreq.setFont(font)
self.delFreq.setIconSize(QtCore.QSize(16, 16))
self.delFreq.setObjectName("delFreq")
self.gridLayout_2.addWidget(self.delFreq, 5, 7, 1, 1)
self.loadS2P = QtWidgets.QPushButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.loadS2P.sizePolicy().hasHeightForWidth())
self.loadS2P.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.loadS2P.setFont(font)
self.loadS2P.setObjectName("loadS2P")
self.gridLayout_2.addWidget(self.loadS2P, 4, 8, 1, 1)
self.partNum = QtWidgets.QLineEdit(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.partNum.sizePolicy().hasHeightForWidth())
self.partNum.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.partNum.setFont(font)
self.partNum.setText("")
self.partNum.setObjectName("partNum")
self.gridLayout_2.addWidget(self.partNum, 1, 7, 1, 1)
self.label_7 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
self.label_7.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setWordWrap(True)
self.label_7.setObjectName("label_7")
self.gridLayout_2.addWidget(self.label_7, 0, 1, 1, 1)
self.addDevice = QtWidgets.QToolButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.addDevice.sizePolicy().hasHeightForWidth())
self.addDevice.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.addDevice.setFont(font)
self.addDevice.setObjectName("addDevice")
self.gridLayout_2.addWidget(self.addDevice, 2, 7, 1, 1)
self.label_5 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_5.setFont(font)
self.label_5.setWordWrap(True)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 0, 9, 1, 1)
self.directivity = QtWidgets.QDoubleSpinBox(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.directivity.sizePolicy().hasHeightForWidth())
self.directivity.setSizePolicy(sizePolicy)
self.directivity.setMinimumSize(QtCore.QSize(100, 0))
font = QtGui.QFont()
font.setPointSize(12)
self.directivity.setFont(font)
self.directivity.setSuffix("")
self.directivity.setMinimum(0.0)
self.directivity.setMaximum(100.0)
self.directivity.setObjectName("directivity")
self.gridLayout_2.addWidget(self.directivity, 4, 5, 1, 1)
self.label_11 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
self.label_11.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_11.setFont(font)
self.label_11.setAlignment(QtCore.Qt.AlignCenter)
self.label_11.setWordWrap(True)
self.label_11.setObjectName("label_11")
self.gridLayout_2.addWidget(self.label_11, 0, 3, 1, 1)
self.label_4 = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignCenter)
self.label_4.setWordWrap(True)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 4, 1, 1)
self.label = QtWidgets.QLabel(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setWordWrap(True)
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 0, 7, 1, 1)
self.saveValues = QtWidgets.QPushButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.saveValues.sizePolicy().hasHeightForWidth())
self.saveValues.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.saveValues.setFont(font)
self.saveValues.setObjectName("saveValues")
self.gridLayout_2.addWidget(self.saveValues, 5, 9, 1, 1)
self.maxPower = QtWidgets.QDoubleSpinBox(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.maxPower.sizePolicy().hasHeightForWidth())
self.maxPower.setSizePolicy(sizePolicy)
self.maxPower.setMinimumSize(QtCore.QSize(100, 0))
self.maxPower.setSizeIncrement(QtCore.QSize(0, 0))
font = QtGui.QFont()
font.setPointSize(12)
self.maxPower.setFont(font)
self.maxPower.setSuffix("")
self.maxPower.setDecimals(1)
self.maxPower.setMaximum(2500.0)
self.maxPower.setObjectName("maxPower")
self.gridLayout_2.addWidget(self.maxPower, 1, 4, 1, 1)
self.nextFreq = QtWidgets.QToolButton(self.deviceTab)
self.nextFreq.setIconSize(QtCore.QSize(20, 25))
self.nextFreq.setArrowType(QtCore.Qt.RightArrow)
self.nextFreq.setObjectName("nextFreq")
self.gridLayout_2.addWidget(self.nextFreq, 4, 2, 1, 1)
self.saveDevice = QtWidgets.QPushButton(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.saveDevice.sizePolicy().hasHeightForWidth())
self.saveDevice.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.saveDevice.setFont(font)
self.saveDevice.setObjectName("saveDevice")
self.gridLayout_2.addWidget(self.saveDevice, 2, 9, 1, 1)
self.freqIndex = QtWidgets.QDoubleSpinBox(self.deviceTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.freqIndex.sizePolicy().hasHeightForWidth())
self.freqIndex.setSizePolicy(sizePolicy)
self.freqIndex.setMinimumSize(QtCore.QSize(130, 0))
font = QtGui.QFont()
font.setPointSize(12)
self.freqIndex.setFont(font)
self.freqIndex.setSuffix("")
self.freqIndex.setDecimals(6)
self.freqIndex.setMaximum(6000.0)
self.freqIndex.setSingleStep(10.0)
self.freqIndex.setProperty("value", 0.0)
self.freqIndex.setObjectName("freqIndex")
self.gridLayout_2.addWidget(self.freqIndex, 4, 1, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)