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.
Files changed (54) hide show
  1. not1mm/__main__.py +1 -1
  2. not1mm/lib/plugin_common.py +20 -1
  3. not1mm/lib/version.py +1 -1
  4. not1mm/plugins/10_10_fall_cw.py +12 -24
  5. not1mm/plugins/10_10_spring_cw.py +12 -24
  6. not1mm/plugins/10_10_summer_phone.py +12 -22
  7. not1mm/plugins/10_10_winter_phone.py +12 -24
  8. not1mm/plugins/arrl_10m.py +16 -29
  9. not1mm/plugins/arrl_dx_cw.py +11 -22
  10. not1mm/plugins/arrl_dx_ssb.py +11 -22
  11. not1mm/plugins/arrl_field_day.py +14 -22
  12. not1mm/plugins/arrl_rtty_ru.py +10 -22
  13. not1mm/plugins/arrl_ss_cw.py +14 -29
  14. not1mm/plugins/arrl_ss_phone.py +14 -29
  15. not1mm/plugins/arrl_vhf_jan.py +14 -29
  16. not1mm/plugins/arrl_vhf_jun.py +14 -29
  17. not1mm/plugins/arrl_vhf_sep.py +14 -29
  18. not1mm/plugins/canada_day.py +14 -29
  19. not1mm/plugins/cq_160_cw.py +10 -24
  20. not1mm/plugins/cq_160_ssb.py +10 -24
  21. not1mm/plugins/cq_wpx_cw.py +12 -25
  22. not1mm/plugins/cq_wpx_rtty.py +12 -25
  23. not1mm/plugins/cq_wpx_ssb.py +14 -29
  24. not1mm/plugins/cq_ww_cw.py +11 -22
  25. not1mm/plugins/cq_ww_rtty.py +12 -26
  26. not1mm/plugins/cq_ww_ssb.py +11 -22
  27. not1mm/plugins/cwt.py +12 -26
  28. not1mm/plugins/darc_xmas.py +15 -31
  29. not1mm/plugins/general_logging.py +12 -26
  30. not1mm/plugins/helvetia.py +15 -26
  31. not1mm/plugins/iaru_fieldday_r1_cw.py +12 -25
  32. not1mm/plugins/iaru_fieldday_r1_ssb.py +12 -25
  33. not1mm/plugins/iaru_hf.py +11 -22
  34. not1mm/plugins/icwc_mst.py +136 -40
  35. not1mm/plugins/jidx_cw.py +102 -23
  36. not1mm/plugins/jidx_ph.py +106 -29
  37. not1mm/plugins/k1usn_sst.py +10 -16
  38. not1mm/plugins/lz-dx.py +17 -28
  39. not1mm/plugins/naqp_cw.py +11 -17
  40. not1mm/plugins/naqp_rtty.py +11 -17
  41. not1mm/plugins/naqp_ssb.py +11 -17
  42. not1mm/plugins/phone_weekly_test.py +101 -16
  43. not1mm/plugins/raem.py +26 -25
  44. not1mm/plugins/ref_cw.py +17 -28
  45. not1mm/plugins/ref_ssb.py +32 -28
  46. not1mm/plugins/stew_perry_topband.py +102 -16
  47. not1mm/plugins/weekly_rtty.py +17 -16
  48. not1mm/plugins/winter_field_day.py +28 -24
  49. {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/METADATA +6 -5
  50. {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/RECORD +54 -54
  51. {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/LICENSE +0 -0
  52. {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/WHEEL +0 -0
  53. {not1mm-24.11.18.dist-info → not1mm-24.11.19.dist-info}/entry_points.txt +0 -0
  54. {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.field1.setAccessibleName("RST Sent")
86
- namefield = self.field3.findChild(QtWidgets.QLabel)
87
- namefield.setText("Name")
88
- self.field3.setAccessibleName("Name")
89
- spc = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
102
- self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
103
- QtWidgets.QLineEdit
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.field4.findChild(QtWidgets.QLineEdit),
113
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
114
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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
 
@@ -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.field1.setAccessibleName("RST Sent")
89
- namefield = self.field3.findChild(QtWidgets.QLabel)
90
- namefield.setText("Name")
91
- self.field3.setAccessibleName("Name")
92
- spc = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
105
- self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
106
- QtWidgets.QLineEdit
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.field4.findChild(QtWidgets.QLineEdit),
116
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
117
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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
 
@@ -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.field1.setAccessibleName("RST Sent")
56
- namefield = self.field3.findChild(QtWidgets.QLabel)
57
- namefield.setText("Name")
58
- self.field3.setAccessibleName("Name")
59
- spc = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
72
- self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
73
- QtWidgets.QLineEdit
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.field4.findChild(QtWidgets.QLineEdit),
83
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
84
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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
- namefield = self.field3.findChild(QtWidgets.QLabel)
77
- namefield.setText("Name")
78
- self.field3.setAccessibleName("Name")
79
- spc = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
92
- self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
93
- QtWidgets.QLineEdit
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.field4.findChild(QtWidgets.QLineEdit),
103
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
104
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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.field1.setAccessibleName("Sent Serial Number")
95
+ self.sent.setAccessibleName("Sent Serial Number")
81
96
  self.other_label.setText("Rcv S/N")
82
- self.field3.setAccessibleName("Serial Number")
97
+ self.other_1.setAccessibleName("Serial Number")
83
98
  self.exch_label.setText("Exchange")
84
- self.field4.setAccessibleName("Exchange")
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.field1.findChild(QtWidgets.QLineEdit),
96
- self.field1.findChild(QtWidgets.QLineEdit): self.field3.findChild(
97
- QtWidgets.QLineEdit
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.field4.findChild(QtWidgets.QLineEdit),
113
- self.field1.findChild(QtWidgets.QLineEdit): self.callsign,
114
- # self.field2.findChild(QtWidgets.QLineEdit): self.field1.findChild(
115
- # QtWidgets.QLineEdit
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
- label = self.field3.findChild(QtWidgets.QLabel)
97
- label.setText("Sent")
98
- self.field3.setAccessibleName("Sent")
99
- label = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
112
- self.field1.findChild(QtWidgets.QLineEdit): self.field3.findChild(
113
- QtWidgets.QLineEdit
114
- ),
115
- self.field2.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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.field4.findChild(QtWidgets.QLineEdit),
129
- self.field1.findChild(QtWidgets.QLineEdit): self.callsign,
130
- self.field2.findChild(QtWidgets.QLineEdit): self.callsign,
131
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
132
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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(field.text()) == 0:
199
- field.setText(serial_nr)
187
+ if len(self.other_1.text()) == 0:
188
+ self.other_1.setText(serial_nr)
200
189
  else:
201
- field.setText(sent_sxchange_setting)
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
- label = self.field3.findChild(QtWidgets.QLabel)
97
- label.setText("Sent")
98
- self.field3.setAccessibleName("Sent")
99
- label = self.field4.findChild(QtWidgets.QLabel)
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.field3.findChild(QtWidgets.QLineEdit),
112
- self.field1.findChild(QtWidgets.QLineEdit): self.field3.findChild(
113
- QtWidgets.QLineEdit
114
- ),
115
- self.field2.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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.field4.findChild(QtWidgets.QLineEdit),
129
- self.field1.findChild(QtWidgets.QLineEdit): self.callsign,
130
- self.field2.findChild(QtWidgets.QLineEdit): self.callsign,
131
- self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
132
- self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
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(field.text()) == 0:
199
- field.setText(serial_nr)
202
+ if len(self.other_1.text()) == 0:
203
+ self.other_1.setText(serial_nr)
200
204
  else:
201
- field.setText(sent_sxchange_setting)
205
+ self.other_1.setText(sent_sxchange_setting)
202
206
 
203
207
 
204
208
  def points(self):