not1mm 24.11.18__py3-none-any.whl → 24.11.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- not1mm/__main__.py +1 -1
- not1mm/lib/plugin_common.py +20 -1
- not1mm/lib/version.py +1 -1
- not1mm/plugins/10_10_fall_cw.py +12 -24
- not1mm/plugins/10_10_spring_cw.py +12 -24
- not1mm/plugins/10_10_summer_phone.py +12 -22
- not1mm/plugins/10_10_winter_phone.py +12 -24
- not1mm/plugins/arrl_10m.py +16 -29
- not1mm/plugins/arrl_dx_cw.py +11 -22
- not1mm/plugins/arrl_dx_ssb.py +11 -22
- not1mm/plugins/arrl_field_day.py +14 -22
- not1mm/plugins/arrl_rtty_ru.py +10 -22
- not1mm/plugins/arrl_ss_cw.py +14 -29
- not1mm/plugins/arrl_ss_phone.py +14 -29
- not1mm/plugins/arrl_vhf_jan.py +14 -29
- not1mm/plugins/arrl_vhf_jun.py +14 -29
- not1mm/plugins/arrl_vhf_sep.py +14 -29
- not1mm/plugins/canada_day.py +14 -29
- not1mm/plugins/cq_160_cw.py +10 -24
- not1mm/plugins/cq_160_ssb.py +10 -24
- not1mm/plugins/cq_wpx_cw.py +12 -25
- not1mm/plugins/cq_wpx_rtty.py +12 -25
- not1mm/plugins/cq_wpx_ssb.py +14 -29
- not1mm/plugins/cq_ww_cw.py +11 -22
- not1mm/plugins/cq_ww_rtty.py +12 -26
- not1mm/plugins/cq_ww_ssb.py +11 -22
- not1mm/plugins/cwt.py +12 -26
- not1mm/plugins/darc_xmas.py +15 -31
- not1mm/plugins/general_logging.py +12 -26
- not1mm/plugins/helvetia.py +15 -26
- not1mm/plugins/iaru_fieldday_r1_cw.py +12 -25
- not1mm/plugins/iaru_fieldday_r1_ssb.py +12 -25
- not1mm/plugins/iaru_hf.py +11 -22
- not1mm/plugins/icwc_mst.py +136 -40
- not1mm/plugins/jidx_cw.py +102 -23
- not1mm/plugins/jidx_ph.py +106 -29
- not1mm/plugins/k1usn_sst.py +10 -16
- not1mm/plugins/lz-dx.py +17 -28
- not1mm/plugins/naqp_cw.py +11 -17
- not1mm/plugins/naqp_rtty.py +11 -17
- not1mm/plugins/naqp_ssb.py +11 -17
- not1mm/plugins/phone_weekly_test.py +101 -16
- not1mm/plugins/raem.py +26 -25
- not1mm/plugins/ref_cw.py +17 -28
- not1mm/plugins/ref_ssb.py +32 -28
- not1mm/plugins/stew_perry_topband.py +102 -16
- not1mm/plugins/weekly_rtty.py +17 -16
- not1mm/plugins/winter_field_day.py +28 -24
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/METADATA +6 -5
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/RECORD +54 -54
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/LICENSE +0 -0
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/WHEEL +0 -0
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/entry_points.txt +0 -0
- {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/top_level.txt +0 -0
not1mm/plugins/naqp_cw.py
CHANGED
@@ -82,13 +82,11 @@ def interface(self):
|
|
82
82
|
self.field3.show()
|
83
83
|
self.field4.show()
|
84
84
|
self.snt_label.setText("SNT")
|
85
|
-
self.
|
86
|
-
|
87
|
-
|
88
|
-
self.
|
89
|
-
|
90
|
-
spc.setText("State")
|
91
|
-
self.field4.setAccessibleName("State")
|
85
|
+
self.sent.setAccessibleName("RST Sent")
|
86
|
+
self.other_label.setText("Name")
|
87
|
+
self.other_1.setAccessibleName("Name")
|
88
|
+
self.exch_label.setText("State")
|
89
|
+
self.other_2.setAccessibleName("State")
|
92
90
|
|
93
91
|
|
94
92
|
def reset_label(self):
|
@@ -98,22 +96,18 @@ def reset_label(self):
|
|
98
96
|
def set_tab_next(self):
|
99
97
|
"""Set TAB Advances"""
|
100
98
|
self.tab_next = {
|
101
|
-
self.callsign: self.
|
102
|
-
self.
|
103
|
-
|
104
|
-
),
|
105
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
99
|
+
self.callsign: self.other_1,
|
100
|
+
self.other_1: self.other_2,
|
101
|
+
self.other_2: self.callsign,
|
106
102
|
}
|
107
103
|
|
108
104
|
|
109
105
|
def set_tab_prev(self):
|
110
106
|
"""Set TAB Advances"""
|
111
107
|
self.tab_prev = {
|
112
|
-
self.callsign: self.
|
113
|
-
self.
|
114
|
-
self.
|
115
|
-
QtWidgets.QLineEdit
|
116
|
-
),
|
108
|
+
self.callsign: self.other_2,
|
109
|
+
self.other_1: self.callsign,
|
110
|
+
self.other_2: self.other_1,
|
117
111
|
}
|
118
112
|
|
119
113
|
|
not1mm/plugins/naqp_rtty.py
CHANGED
@@ -85,13 +85,11 @@ def interface(self):
|
|
85
85
|
self.field3.show()
|
86
86
|
self.field4.show()
|
87
87
|
self.snt_label.setText("SNT")
|
88
|
-
self.
|
89
|
-
|
90
|
-
|
91
|
-
self.
|
92
|
-
|
93
|
-
spc.setText("State")
|
94
|
-
self.field4.setAccessibleName("State")
|
88
|
+
self.sent.setAccessibleName("RST Sent")
|
89
|
+
self.other_label.setText("Name")
|
90
|
+
self.other_1.setAccessibleName("Name")
|
91
|
+
self.exch_label.setText("State")
|
92
|
+
self.other_2.setAccessibleName("State")
|
95
93
|
|
96
94
|
|
97
95
|
def reset_label(self):
|
@@ -101,22 +99,18 @@ def reset_label(self):
|
|
101
99
|
def set_tab_next(self):
|
102
100
|
"""Set TAB Advances"""
|
103
101
|
self.tab_next = {
|
104
|
-
self.callsign: self.
|
105
|
-
self.
|
106
|
-
|
107
|
-
),
|
108
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
102
|
+
self.callsign: self.other_1,
|
103
|
+
self.other_1: self.other_2,
|
104
|
+
self.other_2: self.callsign,
|
109
105
|
}
|
110
106
|
|
111
107
|
|
112
108
|
def set_tab_prev(self):
|
113
109
|
"""Set TAB Advances"""
|
114
110
|
self.tab_prev = {
|
115
|
-
self.callsign: self.
|
116
|
-
self.
|
117
|
-
self.
|
118
|
-
QtWidgets.QLineEdit
|
119
|
-
),
|
111
|
+
self.callsign: self.other_2,
|
112
|
+
self.other_1: self.callsign,
|
113
|
+
self.other_2: self.other_1,
|
120
114
|
}
|
121
115
|
|
122
116
|
|
not1mm/plugins/naqp_ssb.py
CHANGED
@@ -52,13 +52,11 @@ def interface(self):
|
|
52
52
|
self.field3.show()
|
53
53
|
self.field4.show()
|
54
54
|
self.snt_label.setText("SNT")
|
55
|
-
self.
|
56
|
-
|
57
|
-
|
58
|
-
self.
|
59
|
-
|
60
|
-
spc.setText("State")
|
61
|
-
self.field4.setAccessibleName("State")
|
55
|
+
self.sent.setAccessibleName("RST Sent")
|
56
|
+
self.other_label.setText("Name")
|
57
|
+
self.other_1.setAccessibleName("Name")
|
58
|
+
self.exch_label.setText("State")
|
59
|
+
self.other_2.setAccessibleName("State")
|
62
60
|
|
63
61
|
|
64
62
|
def reset_label(self):
|
@@ -68,22 +66,18 @@ def reset_label(self):
|
|
68
66
|
def set_tab_next(self):
|
69
67
|
"""Set TAB Advances"""
|
70
68
|
self.tab_next = {
|
71
|
-
self.callsign: self.
|
72
|
-
self.
|
73
|
-
|
74
|
-
),
|
75
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
69
|
+
self.callsign: self.other_1,
|
70
|
+
self.other_1: self.other_2,
|
71
|
+
self.other_2: self.callsign,
|
76
72
|
}
|
77
73
|
|
78
74
|
|
79
75
|
def set_tab_prev(self):
|
80
76
|
"""Set TAB Advances"""
|
81
77
|
self.tab_prev = {
|
82
|
-
self.callsign: self.
|
83
|
-
self.
|
84
|
-
self.
|
85
|
-
QtWidgets.QLineEdit
|
86
|
-
),
|
78
|
+
self.callsign: self.other_2,
|
79
|
+
self.other_1: self.callsign,
|
80
|
+
self.other_2: self.other_1,
|
87
81
|
}
|
88
82
|
|
89
83
|
|
@@ -73,12 +73,10 @@ def interface(self):
|
|
73
73
|
self.field2.hide()
|
74
74
|
self.field3.show()
|
75
75
|
self.field4.show()
|
76
|
-
|
77
|
-
|
78
|
-
self.
|
79
|
-
|
80
|
-
spc.setText("State")
|
81
|
-
self.field4.setAccessibleName("State")
|
76
|
+
self.other_label.setText("Name")
|
77
|
+
self.other_1.setAccessibleName("Name")
|
78
|
+
self.exch_label.setText("State")
|
79
|
+
self.other_2.setAccessibleName("State")
|
82
80
|
|
83
81
|
|
84
82
|
def reset_label(self):
|
@@ -88,22 +86,18 @@ def reset_label(self):
|
|
88
86
|
def set_tab_next(self):
|
89
87
|
"""Set TAB Advances"""
|
90
88
|
self.tab_next = {
|
91
|
-
self.callsign: self.
|
92
|
-
self.
|
93
|
-
|
94
|
-
),
|
95
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
89
|
+
self.callsign: self.other_1,
|
90
|
+
self.other_1: self.other_2,
|
91
|
+
self.other_2: self.callsign,
|
96
92
|
}
|
97
93
|
|
98
94
|
|
99
95
|
def set_tab_prev(self):
|
100
96
|
"""Set TAB Advances"""
|
101
97
|
self.tab_prev = {
|
102
|
-
self.callsign: self.
|
103
|
-
self.
|
104
|
-
self.
|
105
|
-
QtWidgets.QLineEdit
|
106
|
-
),
|
98
|
+
self.callsign: self.other_2,
|
99
|
+
self.other_1: self.callsign,
|
100
|
+
self.other_2: self.other_1,
|
107
101
|
}
|
108
102
|
|
109
103
|
|
@@ -408,3 +402,94 @@ def recalculate_mults(self):
|
|
408
402
|
cmd["cmd"] = "UPDATELOG"
|
409
403
|
cmd["station"] = platform.node()
|
410
404
|
self.multicast_interface.send_as_json(cmd)
|
405
|
+
|
406
|
+
|
407
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
408
|
+
"""ESM State Machine"""
|
409
|
+
|
410
|
+
# self.pref["run_state"]
|
411
|
+
|
412
|
+
# -----===== Assigned F-Keys =====-----
|
413
|
+
# self.esm_dict["CQ"]
|
414
|
+
# self.esm_dict["EXCH"]
|
415
|
+
# self.esm_dict["QRZ"]
|
416
|
+
# self.esm_dict["AGN"]
|
417
|
+
# self.esm_dict["HISCALL"]
|
418
|
+
# self.esm_dict["MYCALL"]
|
419
|
+
# self.esm_dict["QSOB4"]
|
420
|
+
|
421
|
+
# ----==== text fields ====----
|
422
|
+
# self.callsign
|
423
|
+
# self.sent
|
424
|
+
# self.receive
|
425
|
+
# self.other_1
|
426
|
+
# self.other_2
|
427
|
+
|
428
|
+
if new_focused_widget is not None:
|
429
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
430
|
+
|
431
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
432
|
+
|
433
|
+
for a_button in [
|
434
|
+
self.esm_dict["CQ"],
|
435
|
+
self.esm_dict["EXCH"],
|
436
|
+
self.esm_dict["QRZ"],
|
437
|
+
self.esm_dict["AGN"],
|
438
|
+
self.esm_dict["HISCALL"],
|
439
|
+
self.esm_dict["MYCALL"],
|
440
|
+
self.esm_dict["QSOB4"],
|
441
|
+
]:
|
442
|
+
if a_button is not None:
|
443
|
+
self.restore_button_color(a_button)
|
444
|
+
|
445
|
+
buttons_to_send = []
|
446
|
+
|
447
|
+
if self.pref.get("run_state"):
|
448
|
+
if self.current_widget == "callsign":
|
449
|
+
if len(self.callsign.text()) < 3:
|
450
|
+
self.make_button_green(self.esm_dict["CQ"])
|
451
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
452
|
+
elif len(self.callsign.text()) > 2:
|
453
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
454
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
455
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
456
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
457
|
+
|
458
|
+
elif self.current_widget in ["other_1", "other_2"]:
|
459
|
+
if self.other_1.text() == "" or self.other_2.text() == "":
|
460
|
+
self.make_button_green(self.esm_dict["AGN"])
|
461
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
462
|
+
else:
|
463
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
464
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
465
|
+
buttons_to_send.append("LOGIT")
|
466
|
+
|
467
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
468
|
+
for button in buttons_to_send:
|
469
|
+
if button:
|
470
|
+
if button == "LOGIT":
|
471
|
+
self.save_contact()
|
472
|
+
continue
|
473
|
+
self.process_function_key(button)
|
474
|
+
else:
|
475
|
+
if self.current_widget == "callsign":
|
476
|
+
if len(self.callsign.text()) > 2:
|
477
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
478
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
479
|
+
|
480
|
+
elif self.current_widget in ["other_1", "other_2"]:
|
481
|
+
if self.other_1.text() == "" or self.other_2.text() == "":
|
482
|
+
self.make_button_green(self.esm_dict["AGN"])
|
483
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
484
|
+
else:
|
485
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
486
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
487
|
+
buttons_to_send.append("LOGIT")
|
488
|
+
|
489
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
490
|
+
for button in buttons_to_send:
|
491
|
+
if button:
|
492
|
+
if button == "LOGIT":
|
493
|
+
self.save_contact()
|
494
|
+
continue
|
495
|
+
self.process_function_key(button)
|
not1mm/plugins/raem.py
CHANGED
@@ -28,6 +28,21 @@
|
|
28
28
|
# Find rules at: https://raem.srr.ru/rules/
|
29
29
|
# Cabrillo name: RAEM
|
30
30
|
|
31
|
+
# Label and field names
|
32
|
+
# callsign_label, callsign
|
33
|
+
# snt_label, sent
|
34
|
+
# rcv_label, receive
|
35
|
+
# other_label, other_1
|
36
|
+
# exch_label, other_2
|
37
|
+
|
38
|
+
# command button names
|
39
|
+
# esc_stop
|
40
|
+
# log_it
|
41
|
+
# mark
|
42
|
+
# spot_it
|
43
|
+
# wipe
|
44
|
+
|
45
|
+
|
31
46
|
import datetime
|
32
47
|
import logging
|
33
48
|
|
@@ -77,11 +92,11 @@ def interface(self):
|
|
77
92
|
self.field3.show()
|
78
93
|
self.field4.show()
|
79
94
|
self.snt_label.setText("Sent S/N")
|
80
|
-
self.
|
95
|
+
self.sent.setAccessibleName("Sent Serial Number")
|
81
96
|
self.other_label.setText("Rcv S/N")
|
82
|
-
self.
|
97
|
+
self.other_1.setAccessibleName("Serial Number")
|
83
98
|
self.exch_label.setText("Exchange")
|
84
|
-
self.
|
99
|
+
self.other_2.setAccessibleName("Exchange")
|
85
100
|
self.sent.setText("")
|
86
101
|
|
87
102
|
|
@@ -92,34 +107,20 @@ def reset_label(self): # pylint: disable=unused-argument
|
|
92
107
|
def set_tab_next(self):
|
93
108
|
"""Set TAB Advances"""
|
94
109
|
self.tab_next = {
|
95
|
-
self.callsign: self.
|
96
|
-
self.
|
97
|
-
|
98
|
-
|
99
|
-
# self.field2.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
100
|
-
# QtWidgets.QLineEdit
|
101
|
-
# ),
|
102
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
103
|
-
QtWidgets.QLineEdit
|
104
|
-
),
|
105
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
110
|
+
self.callsign: self.sent,
|
111
|
+
self.sent: self.other_1,
|
112
|
+
self.other_1: self.other_2,
|
113
|
+
self.other_2: self.callsign,
|
106
114
|
}
|
107
115
|
|
108
116
|
|
109
117
|
def set_tab_prev(self):
|
110
118
|
"""Set TAB Advances"""
|
111
119
|
self.tab_prev = {
|
112
|
-
self.callsign: self.
|
113
|
-
self.
|
114
|
-
|
115
|
-
|
116
|
-
# ),
|
117
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field1.findChild(
|
118
|
-
QtWidgets.QLineEdit
|
119
|
-
),
|
120
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
121
|
-
QtWidgets.QLineEdit
|
122
|
-
),
|
120
|
+
self.callsign: self.other_2,
|
121
|
+
self.sent: self.callsign,
|
122
|
+
self.other_1: self.sent,
|
123
|
+
self.other_2: self.other_1,
|
123
124
|
}
|
124
125
|
|
125
126
|
|
not1mm/plugins/ref_cw.py
CHANGED
@@ -93,12 +93,10 @@ def interface(self):
|
|
93
93
|
self.field2.show()
|
94
94
|
self.field3.show()
|
95
95
|
self.field4.show()
|
96
|
-
|
97
|
-
|
98
|
-
self.
|
99
|
-
|
100
|
-
label.setText("Dep/Pfx/SN")
|
101
|
-
self.field4.setAccessibleName("Department, Prefix or SN")
|
96
|
+
self.other_label.setText("Sent")
|
97
|
+
self.other_1.setAccessibleName("Sent")
|
98
|
+
self.exch_label.setText("Dep/Pfx/SN")
|
99
|
+
self.other_2.setAccessibleName("Department, Prefix or SN")
|
102
100
|
|
103
101
|
|
104
102
|
def reset_label(self):
|
@@ -108,30 +106,22 @@ def reset_label(self):
|
|
108
106
|
def set_tab_next(self):
|
109
107
|
"""Set TAB Advances"""
|
110
108
|
self.tab_next = {
|
111
|
-
self.callsign: self.
|
112
|
-
self.
|
113
|
-
|
114
|
-
|
115
|
-
self.
|
116
|
-
QtWidgets.QLineEdit
|
117
|
-
),
|
118
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
119
|
-
QtWidgets.QLineEdit
|
120
|
-
),
|
121
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
109
|
+
self.callsign: self.other_1,
|
110
|
+
self.sent: self.other_1,
|
111
|
+
self.receive: self.other_1,
|
112
|
+
self.other_1: self.other_2,
|
113
|
+
self.other_2: self.callsign,
|
122
114
|
}
|
123
115
|
|
124
116
|
|
125
117
|
def set_tab_prev(self):
|
126
118
|
"""Set TAB Advances"""
|
127
119
|
self.tab_prev = {
|
128
|
-
self.callsign: self.
|
129
|
-
self.
|
130
|
-
self.
|
131
|
-
self.
|
132
|
-
self.
|
133
|
-
QtWidgets.QLineEdit
|
134
|
-
),
|
120
|
+
self.callsign: self.other_2,
|
121
|
+
self.sent: self.callsign,
|
122
|
+
self.receive: self.callsign,
|
123
|
+
self.other_1: self.callsign,
|
124
|
+
self.other_2: self.other_1,
|
135
125
|
}
|
136
126
|
|
137
127
|
|
@@ -188,17 +178,16 @@ def predupe(self):
|
|
188
178
|
|
189
179
|
def prefill(self):
|
190
180
|
"""Fill SentNR"""
|
191
|
-
field = self.field3.findChild(QtWidgets.QLineEdit)
|
192
181
|
sent_sxchange_setting = self.contest_settings.get("SentExchange", "")
|
193
182
|
if sent_sxchange_setting.strip() == "#":
|
194
183
|
result = self.database.get_serial()
|
195
184
|
serial_nr = str(result.get("serial_nr", "1")).zfill(3)
|
196
185
|
if serial_nr == "None":
|
197
186
|
serial_nr = "001"
|
198
|
-
if len(
|
199
|
-
|
187
|
+
if len(self.other_1.text()) == 0:
|
188
|
+
self.other_1.setText(serial_nr)
|
200
189
|
else:
|
201
|
-
|
190
|
+
self.other_1.setText(sent_sxchange_setting)
|
202
191
|
|
203
192
|
|
204
193
|
def points(self):
|
not1mm/plugins/ref_ssb.py
CHANGED
@@ -39,6 +39,21 @@ Cabrillo name: REF-SSB
|
|
39
39
|
Cabrillo name aliases: REF
|
40
40
|
"""
|
41
41
|
|
42
|
+
# Label and field names
|
43
|
+
# callsign_label, callsign
|
44
|
+
# snt_label, sent
|
45
|
+
# rcv_label, receive
|
46
|
+
# other_label, other_1
|
47
|
+
# exch_label, other_2
|
48
|
+
|
49
|
+
# command button names
|
50
|
+
# esc_stop
|
51
|
+
# log_it
|
52
|
+
# mark
|
53
|
+
# spot_it
|
54
|
+
# wipe
|
55
|
+
|
56
|
+
|
42
57
|
import datetime
|
43
58
|
import logging
|
44
59
|
import platform
|
@@ -93,12 +108,10 @@ def interface(self):
|
|
93
108
|
self.field2.show()
|
94
109
|
self.field3.show()
|
95
110
|
self.field4.show()
|
96
|
-
|
97
|
-
|
98
|
-
self.
|
99
|
-
|
100
|
-
label.setText("Dep/Pfx/SN")
|
101
|
-
self.field4.setAccessibleName("Department, Prefix or SN")
|
111
|
+
self.other_label.setText("Sent")
|
112
|
+
self.other_1.setAccessibleName("Sent")
|
113
|
+
self.exch_label.setText("Dep/Pfx/SN")
|
114
|
+
self.other_2.setAccessibleName("Department, Prefix or SN")
|
102
115
|
|
103
116
|
|
104
117
|
def reset_label(self):
|
@@ -108,30 +121,22 @@ def reset_label(self):
|
|
108
121
|
def set_tab_next(self):
|
109
122
|
"""Set TAB Advances"""
|
110
123
|
self.tab_next = {
|
111
|
-
self.callsign: self.
|
112
|
-
self.
|
113
|
-
|
114
|
-
|
115
|
-
self.
|
116
|
-
QtWidgets.QLineEdit
|
117
|
-
),
|
118
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
119
|
-
QtWidgets.QLineEdit
|
120
|
-
),
|
121
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
124
|
+
self.callsign: self.other_1,
|
125
|
+
self.sent: self.other_1,
|
126
|
+
self.receive: self.other_1,
|
127
|
+
self.other_1: self.other_2,
|
128
|
+
self.other_2: self.callsign,
|
122
129
|
}
|
123
130
|
|
124
131
|
|
125
132
|
def set_tab_prev(self):
|
126
133
|
"""Set TAB Advances"""
|
127
134
|
self.tab_prev = {
|
128
|
-
self.callsign: self.
|
129
|
-
self.
|
130
|
-
self.
|
131
|
-
self.
|
132
|
-
self.
|
133
|
-
QtWidgets.QLineEdit
|
134
|
-
),
|
135
|
+
self.callsign: self.other_2,
|
136
|
+
self.sent: self.callsign,
|
137
|
+
self.receive: self.callsign,
|
138
|
+
self.other_1: self.callsign,
|
139
|
+
self.other_2: self.other_1,
|
135
140
|
}
|
136
141
|
|
137
142
|
|
@@ -188,17 +193,16 @@ def predupe(self):
|
|
188
193
|
|
189
194
|
def prefill(self):
|
190
195
|
"""Fill SentNR"""
|
191
|
-
field = self.field3.findChild(QtWidgets.QLineEdit)
|
192
196
|
sent_sxchange_setting = self.contest_settings.get("SentExchange", "")
|
193
197
|
if sent_sxchange_setting.strip() == "#":
|
194
198
|
result = self.database.get_serial()
|
195
199
|
serial_nr = str(result.get("serial_nr", "1")).zfill(3)
|
196
200
|
if serial_nr == "None":
|
197
201
|
serial_nr = "001"
|
198
|
-
if len(
|
199
|
-
|
202
|
+
if len(self.other_1.text()) == 0:
|
203
|
+
self.other_1.setText(serial_nr)
|
200
204
|
else:
|
201
|
-
|
205
|
+
self.other_1.setText(sent_sxchange_setting)
|
202
206
|
|
203
207
|
|
204
208
|
def points(self):
|