not1mm 24.11.2__py3-none-any.whl → 24.11.3.1__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 +12 -3
- not1mm/data/new_contest.ui +5 -0
- not1mm/lib/version.py +1 -1
- not1mm/plugins/10_10_fall_cw.py +1 -1
- not1mm/plugins/10_10_spring_cw.py +1 -1
- not1mm/plugins/10_10_summer_phone.py +1 -1
- not1mm/plugins/10_10_winter_phone.py +1 -1
- not1mm/plugins/arrl_10m.py +1 -1
- not1mm/plugins/arrl_dx_cw.py +1 -1
- not1mm/plugins/arrl_dx_ssb.py +1 -1
- not1mm/plugins/arrl_field_day.py +1 -1
- not1mm/plugins/arrl_ss_cw.py +1 -1
- not1mm/plugins/arrl_ss_phone.py +1 -1
- not1mm/plugins/arrl_vhf_jan.py +1 -1
- not1mm/plugins/arrl_vhf_jun.py +1 -1
- not1mm/plugins/arrl_vhf_sep.py +1 -1
- not1mm/plugins/canada_day.py +1 -1
- not1mm/plugins/cq_160_cw.py +1 -1
- not1mm/plugins/cq_160_ssb.py +1 -1
- not1mm/plugins/cq_wpx_cw.py +1 -1
- not1mm/plugins/cq_wpx_rtty.py +1 -1
- not1mm/plugins/cq_wpx_ssb.py +1 -1
- not1mm/plugins/cq_ww_rtty.py +1 -1
- not1mm/plugins/cq_ww_ssb.py +1 -1
- not1mm/plugins/cwt.py +16 -9
- not1mm/plugins/helvetia.py +102 -1
- not1mm/plugins/iaru_fieldday_r1_cw.py +1 -1
- not1mm/plugins/iaru_fieldday_r1_ssb.py +1 -1
- not1mm/plugins/iaru_hf.py +1 -1
- not1mm/plugins/icwc_mst.py +1 -1
- not1mm/plugins/jidx_cw.py +1 -1
- not1mm/plugins/jidx_ph.py +1 -1
- not1mm/plugins/k1usn_sst.py +13 -1
- not1mm/plugins/naqp_cw.py +13 -4
- not1mm/plugins/naqp_rtty.py +13 -6
- not1mm/plugins/naqp_ssb.py +13 -4
- not1mm/plugins/phone_weekly_test.py +1 -1
- not1mm/plugins/raem.py +592 -0
- not1mm/plugins/ref_cw.py +1 -1
- not1mm/plugins/ref_ssb.py +1 -1
- not1mm/plugins/stew_perry_topband.py +1 -1
- not1mm/plugins/weekly_rtty.py +1 -1
- not1mm/plugins/winter_field_day.py +13 -1
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/METADATA +28 -5
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/RECORD +49 -48
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/LICENSE +0 -0
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/WHEEL +0 -0
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/entry_points.txt +0 -0
- {not1mm-24.11.2.dist-info → not1mm-24.11.3.1.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
@@ -737,12 +737,16 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
737
737
|
group = {}
|
738
738
|
fields = line.strip().split(",")
|
739
739
|
# ['4U1WB','MDC','DC','89','']
|
740
|
+
number_of_fields = len(fields)
|
740
741
|
count = 0
|
741
742
|
try:
|
742
743
|
for item in item_names:
|
743
744
|
if item == "":
|
744
745
|
continue
|
745
|
-
|
746
|
+
if count < number_of_fields:
|
747
|
+
group[item] = fields[count]
|
748
|
+
else:
|
749
|
+
group[item] = ""
|
746
750
|
count += 1
|
747
751
|
group_list.append(group)
|
748
752
|
# database.add_callhistory_item(group)
|
@@ -1736,13 +1740,14 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
1736
1740
|
"[Shift-Tab]\tMove cursor left One field.\n"
|
1737
1741
|
"[SPACE]\tWhen in the callsign field, will move the input to the\n"
|
1738
1742
|
"\tfirst field needed for the exchange.\n"
|
1739
|
-
"[Enter]\tSubmits the fields to the log.\n"
|
1743
|
+
"[Enter]\tSubmits the fields to the log. Unless ESM is enabled.\n"
|
1740
1744
|
"[F1-F12]\tSend (CW or Voice) macros.\n"
|
1741
1745
|
"[CTRL-G]\tTune to a spot matching partial text in the callsign\n"
|
1742
1746
|
"\tentry field (CAT Required).\n"
|
1743
1747
|
"[CTRL-M]\tMark Callsign to the bandmap window to work later."
|
1744
1748
|
"[CTRL-S]\tSpot Callsign to the cluster.\n"
|
1745
1749
|
"[CTRL-SHIFT-K] Open CW text input field.\n"
|
1750
|
+
"[CTRL-=]\tLog the contact without sending the ESM macros.\n"
|
1746
1751
|
)
|
1747
1752
|
|
1748
1753
|
def filepicker(self, action: str) -> str:
|
@@ -2284,6 +2289,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
2284
2289
|
self.dupe_indicator.hide()
|
2285
2290
|
self.contact = self.database.empty_contact.copy()
|
2286
2291
|
self.heading_distance.setText("")
|
2292
|
+
self.history_info.setText("")
|
2287
2293
|
self.dx_entity.setText("")
|
2288
2294
|
|
2289
2295
|
if self.contest:
|
@@ -2294,7 +2300,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
2294
2300
|
score = self.contest.calc_score(self)
|
2295
2301
|
self.score.setText(str(score))
|
2296
2302
|
self.contest.reset_label(self)
|
2297
|
-
if
|
2303
|
+
if (
|
2304
|
+
self.contest.name != "ICWC Medium Speed Test"
|
2305
|
+
and self.contest.name != "RAEM"
|
2306
|
+
):
|
2298
2307
|
if self.current_mode in ("CW", "RTTY"):
|
2299
2308
|
self.sent.setText("599")
|
2300
2309
|
self.receive.setText("599")
|
not1mm/data/new_contest.ui
CHANGED
not1mm/lib/version.py
CHANGED
not1mm/plugins/10_10_fall_cw.py
CHANGED
@@ -194,7 +194,7 @@ def cabrillo(self, file_encoding):
|
|
194
194
|
logger.debug("%s", filename)
|
195
195
|
log = self.database.fetch_all_contacts_asc()
|
196
196
|
try:
|
197
|
-
with open(filename, "w", encoding=
|
197
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
198
198
|
output_cabrillo_line(
|
199
199
|
"START-OF-LOG: 3.0",
|
200
200
|
"\r\n",
|
@@ -193,7 +193,7 @@ def cabrillo(self, file_encoding):
|
|
193
193
|
logger.debug("%s", filename)
|
194
194
|
log = self.database.fetch_all_contacts_asc()
|
195
195
|
try:
|
196
|
-
with open(filename, "w", encoding=
|
196
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
197
197
|
output_cabrillo_line(
|
198
198
|
"START-OF-LOG: 3.0",
|
199
199
|
"\r\n",
|
@@ -195,7 +195,7 @@ def cabrillo(self, file_encoding):
|
|
195
195
|
logger.debug("%s", filename)
|
196
196
|
log = self.database.fetch_all_contacts_asc()
|
197
197
|
try:
|
198
|
-
with open(filename, "w", encoding=
|
198
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
199
199
|
output_cabrillo_line(
|
200
200
|
"START-OF-LOG: 3.0",
|
201
201
|
"\r\n",
|
@@ -195,7 +195,7 @@ def cabrillo(self, file_encoding):
|
|
195
195
|
logger.debug("%s", filename)
|
196
196
|
log = self.database.fetch_all_contacts_asc()
|
197
197
|
try:
|
198
|
-
with open(filename, "w", encoding=
|
198
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
199
199
|
output_cabrillo_line(
|
200
200
|
"START-OF-LOG: 3.0",
|
201
201
|
"\r\n",
|
not1mm/plugins/arrl_10m.py
CHANGED
@@ -277,7 +277,7 @@ def cabrillo(self, file_encoding):
|
|
277
277
|
logger.debug("%s", filename)
|
278
278
|
log = self.database.fetch_all_contacts_asc()
|
279
279
|
try:
|
280
|
-
with open(filename, "w", encoding=
|
280
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
281
281
|
output_cabrillo_line(
|
282
282
|
"START-OF-LOG: 3.0",
|
283
283
|
"\r\n",
|
not1mm/plugins/arrl_dx_cw.py
CHANGED
@@ -219,7 +219,7 @@ def cabrillo(self, file_encoding):
|
|
219
219
|
logger.debug("%s", filename)
|
220
220
|
log = self.database.fetch_all_contacts_asc()
|
221
221
|
try:
|
222
|
-
with open(filename, "w", encoding=
|
222
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
223
223
|
output_cabrillo_line(
|
224
224
|
"START-OF-LOG: 3.0",
|
225
225
|
"\r\n",
|
not1mm/plugins/arrl_dx_ssb.py
CHANGED
@@ -219,7 +219,7 @@ def cabrillo(self, file_encoding):
|
|
219
219
|
logger.debug("%s", filename)
|
220
220
|
log = self.database.fetch_all_contacts_asc()
|
221
221
|
try:
|
222
|
-
with open(filename, "w", encoding=
|
222
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
223
223
|
output_cabrillo_line(
|
224
224
|
"START-OF-LOG: 3.0",
|
225
225
|
"\r\n",
|
not1mm/plugins/arrl_field_day.py
CHANGED
@@ -173,7 +173,7 @@ def cabrillo(self, file_encoding):
|
|
173
173
|
logger.debug("%s", filename)
|
174
174
|
log = self.database.fetch_all_contacts_asc()
|
175
175
|
try:
|
176
|
-
with open(filename, "w", encoding=
|
176
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
177
177
|
output_cabrillo_line(
|
178
178
|
"START-OF-LOG: 3.0",
|
179
179
|
"\r\n",
|
not1mm/plugins/arrl_ss_cw.py
CHANGED
@@ -216,7 +216,7 @@ def cabrillo(self, file_encoding):
|
|
216
216
|
logger.debug("%s", filename)
|
217
217
|
log = self.database.fetch_all_contacts_asc()
|
218
218
|
try:
|
219
|
-
with open(filename, "w", encoding=
|
219
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
220
220
|
output_cabrillo_line(
|
221
221
|
"START-OF-LOG: 3.0",
|
222
222
|
"\r\n",
|
not1mm/plugins/arrl_ss_phone.py
CHANGED
@@ -206,7 +206,7 @@ def cabrillo(self, file_encoding):
|
|
206
206
|
logger.debug("%s", filename)
|
207
207
|
log = self.database.fetch_all_contacts_asc()
|
208
208
|
try:
|
209
|
-
with open(filename, "w", encoding=
|
209
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
210
210
|
output_cabrillo_line(
|
211
211
|
"START-OF-LOG: 3.0",
|
212
212
|
"\r\n",
|
not1mm/plugins/arrl_vhf_jan.py
CHANGED
@@ -256,7 +256,7 @@ def cabrillo(self, file_encoding):
|
|
256
256
|
logger.debug("%s", filename)
|
257
257
|
log = self.database.fetch_all_contacts_asc()
|
258
258
|
try:
|
259
|
-
with open(filename, "w", encoding=
|
259
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
260
260
|
output_cabrillo_line(
|
261
261
|
"START-OF-LOG: 3.0",
|
262
262
|
"\r\n",
|
not1mm/plugins/arrl_vhf_jun.py
CHANGED
@@ -224,7 +224,7 @@ def cabrillo(self, file_encoding):
|
|
224
224
|
logger.debug("%s", filename)
|
225
225
|
log = self.database.fetch_all_contacts_asc()
|
226
226
|
try:
|
227
|
-
with open(filename, "w", encoding=
|
227
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
228
228
|
output_cabrillo_line(
|
229
229
|
"START-OF-LOG: 3.0",
|
230
230
|
"\r\n",
|
not1mm/plugins/arrl_vhf_sep.py
CHANGED
@@ -224,7 +224,7 @@ def cabrillo(self, file_encoding):
|
|
224
224
|
logger.debug("%s", filename)
|
225
225
|
log = self.database.fetch_all_contacts_asc()
|
226
226
|
try:
|
227
|
-
with open(filename, "w", encoding=
|
227
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
228
228
|
output_cabrillo_line(
|
229
229
|
"START-OF-LOG: 3.0",
|
230
230
|
"\r\n",
|
not1mm/plugins/canada_day.py
CHANGED
@@ -247,7 +247,7 @@ def cabrillo(self, file_encoding):
|
|
247
247
|
logger.debug("%s", filename)
|
248
248
|
log = self.database.fetch_all_contacts_asc()
|
249
249
|
try:
|
250
|
-
with open(filename, "w", encoding=
|
250
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
251
251
|
output_cabrillo_line(
|
252
252
|
"START-OF-LOG: 3.0",
|
253
253
|
"\r\n",
|
not1mm/plugins/cq_160_cw.py
CHANGED
@@ -234,7 +234,7 @@ def cabrillo(self, file_encoding):
|
|
234
234
|
logger.debug("%s", filename)
|
235
235
|
log = self.database.fetch_all_contacts_asc()
|
236
236
|
try:
|
237
|
-
with open(filename, "w", encoding=
|
237
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
238
238
|
output_cabrillo_line(
|
239
239
|
"START-OF-LOG: 3.0",
|
240
240
|
"\r\n",
|
not1mm/plugins/cq_160_ssb.py
CHANGED
@@ -234,7 +234,7 @@ def cabrillo(self, file_encoding):
|
|
234
234
|
logger.debug("%s", filename)
|
235
235
|
log = self.database.fetch_all_contacts_asc()
|
236
236
|
try:
|
237
|
-
with open(filename, "w", encoding=
|
237
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
238
238
|
output_cabrillo_line(
|
239
239
|
"START-OF-LOG: 3.0",
|
240
240
|
"\r\n",
|
not1mm/plugins/cq_wpx_cw.py
CHANGED
@@ -266,7 +266,7 @@ def cabrillo(self, file_encoding):
|
|
266
266
|
logger.debug("%s", filename)
|
267
267
|
log = self.database.fetch_all_contacts_asc()
|
268
268
|
try:
|
269
|
-
with open(filename, "w", encoding=
|
269
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
270
270
|
output_cabrillo_line(
|
271
271
|
"START-OF-LOG: 3.0",
|
272
272
|
"\r\n",
|
not1mm/plugins/cq_wpx_rtty.py
CHANGED
@@ -265,7 +265,7 @@ def cabrillo(self, file_encoding):
|
|
265
265
|
logger.debug("%s", filename)
|
266
266
|
log = self.database.fetch_all_contacts_asc()
|
267
267
|
try:
|
268
|
-
with open(filename, "w", encoding=
|
268
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
269
269
|
output_cabrillo_line(
|
270
270
|
"START-OF-LOG: 3.0",
|
271
271
|
"\r\n",
|
not1mm/plugins/cq_wpx_ssb.py
CHANGED
@@ -231,7 +231,7 @@ def cabrillo(self, file_encoding):
|
|
231
231
|
logger.debug("%s", filename)
|
232
232
|
log = self.database.fetch_all_contacts_asc()
|
233
233
|
try:
|
234
|
-
with open(filename, "w", encoding=
|
234
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
235
235
|
output_cabrillo_line(
|
236
236
|
"START-OF-LOG: 3.0",
|
237
237
|
"\r\n",
|
not1mm/plugins/cq_ww_rtty.py
CHANGED
@@ -254,7 +254,7 @@ def cabrillo(self, file_encoding):
|
|
254
254
|
logger.debug("%s", filename)
|
255
255
|
log = self.database.fetch_all_contacts_asc()
|
256
256
|
try:
|
257
|
-
with open(filename, "w", encoding=
|
257
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
258
258
|
output_cabrillo_line(
|
259
259
|
"START-OF-LOG: 3.0",
|
260
260
|
"\r\n",
|
not1mm/plugins/cq_ww_ssb.py
CHANGED
@@ -230,7 +230,7 @@ def cabrillo(self, file_encoding):
|
|
230
230
|
logger.debug("%s", filename)
|
231
231
|
log = self.database.fetch_all_contacts_asc()
|
232
232
|
try:
|
233
|
-
with open(filename, "w", encoding=
|
233
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
234
234
|
output_cabrillo_line(
|
235
235
|
"START-OF-LOG: 3.0",
|
236
236
|
"\r\n",
|
not1mm/plugins/cwt.py
CHANGED
@@ -224,7 +224,7 @@ def cabrillo(self, file_encoding):
|
|
224
224
|
logger.debug("%s", filename)
|
225
225
|
log = self.database.fetch_all_contacts_asc()
|
226
226
|
try:
|
227
|
-
with open(filename, "w", encoding=
|
227
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
228
228
|
output_cabrillo_line(
|
229
229
|
"START-OF-LOG: 3.0",
|
230
230
|
"\r\n",
|
@@ -478,13 +478,11 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
478
478
|
if self.other_2.text() == "" or self.other_1.text() == "":
|
479
479
|
self.make_button_green(self.esm_dict["AGN"])
|
480
480
|
buttons_to_send.append(self.esm_dict["AGN"])
|
481
|
-
|
481
|
+
else:
|
482
482
|
self.make_button_green(self.esm_dict["QRZ"])
|
483
483
|
buttons_to_send.append(self.esm_dict["QRZ"])
|
484
484
|
buttons_to_send.append("LOGIT")
|
485
|
-
|
486
|
-
self.make_button_green(self.esm_dict["AGN"])
|
487
|
-
buttons_to_send.append(self.esm_dict["AGN"])
|
485
|
+
|
488
486
|
if with_enter is True and bool(len(buttons_to_send)):
|
489
487
|
for button in buttons_to_send:
|
490
488
|
if button:
|
@@ -502,13 +500,11 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
502
500
|
if self.other_2.text() == "" or self.other_1.text() == "":
|
503
501
|
self.make_button_green(self.esm_dict["AGN"])
|
504
502
|
buttons_to_send.append(self.esm_dict["AGN"])
|
505
|
-
|
503
|
+
else:
|
506
504
|
self.make_button_green(self.esm_dict["EXCH"])
|
507
505
|
buttons_to_send.append(self.esm_dict["EXCH"])
|
508
506
|
buttons_to_send.append("LOGIT")
|
509
|
-
|
510
|
-
self.make_button_green(self.esm_dict["AGN"])
|
511
|
-
buttons_to_send.append(self.esm_dict["AGN"])
|
507
|
+
|
512
508
|
if with_enter is True and bool(len(buttons_to_send)):
|
513
509
|
for button in buttons_to_send:
|
514
510
|
if button:
|
@@ -516,3 +512,14 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
516
512
|
self.save_contact()
|
517
513
|
continue
|
518
514
|
self.process_function_key(button)
|
515
|
+
|
516
|
+
|
517
|
+
def check_call_history(self):
|
518
|
+
""""""
|
519
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
520
|
+
if result:
|
521
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
522
|
+
if self.other_1.text() == "":
|
523
|
+
self.other_1.setText(f"{result.get('Name', '')}")
|
524
|
+
if self.other_2.text() == "":
|
525
|
+
self.other_2.setText(f"{result.get('Exch1', '')}")
|
not1mm/plugins/helvetia.py
CHANGED
@@ -349,7 +349,7 @@ def cabrillo(self, file_encoding):
|
|
349
349
|
logger.debug("%s", filename)
|
350
350
|
log = self.database.fetch_all_contacts_asc()
|
351
351
|
try:
|
352
|
-
with open(filename, "w", encoding=
|
352
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
353
353
|
output_cabrillo_line(
|
354
354
|
"START-OF-LOG: 3.0",
|
355
355
|
"\r\n",
|
@@ -522,3 +522,104 @@ def cabrillo(self, file_encoding):
|
|
522
522
|
logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
|
523
523
|
self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
|
524
524
|
return
|
525
|
+
|
526
|
+
|
527
|
+
def check_call_history(self):
|
528
|
+
""""""
|
529
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
530
|
+
print(f"{result=}")
|
531
|
+
if result:
|
532
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
533
|
+
if self.other_2.text() == "":
|
534
|
+
self.other_2.setText(f"{result.get('Exch1', '')}")
|
535
|
+
|
536
|
+
|
537
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
538
|
+
"""ESM State Machine"""
|
539
|
+
|
540
|
+
# self.pref["run_state"]
|
541
|
+
|
542
|
+
# -----===== Assigned F-Keys =====-----
|
543
|
+
# self.esm_dict["CQ"]
|
544
|
+
# self.esm_dict["EXCH"]
|
545
|
+
# self.esm_dict["QRZ"]
|
546
|
+
# self.esm_dict["AGN"]
|
547
|
+
# self.esm_dict["HISCALL"]
|
548
|
+
# self.esm_dict["MYCALL"]
|
549
|
+
# self.esm_dict["QSOB4"]
|
550
|
+
|
551
|
+
# ----==== text fields ====----
|
552
|
+
# self.callsign
|
553
|
+
# self.sent
|
554
|
+
# self.receive
|
555
|
+
# self.other_1
|
556
|
+
# self.other_2
|
557
|
+
|
558
|
+
if new_focused_widget is not None:
|
559
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
560
|
+
|
561
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
562
|
+
|
563
|
+
for a_button in [
|
564
|
+
self.esm_dict["CQ"],
|
565
|
+
self.esm_dict["EXCH"],
|
566
|
+
self.esm_dict["QRZ"],
|
567
|
+
self.esm_dict["AGN"],
|
568
|
+
self.esm_dict["HISCALL"],
|
569
|
+
self.esm_dict["MYCALL"],
|
570
|
+
self.esm_dict["QSOB4"],
|
571
|
+
]:
|
572
|
+
if a_button is not None:
|
573
|
+
self.restore_button_color(a_button)
|
574
|
+
|
575
|
+
buttons_to_send = []
|
576
|
+
|
577
|
+
if self.pref.get("run_state"):
|
578
|
+
if self.current_widget == "callsign":
|
579
|
+
if len(self.callsign.text()) < 3:
|
580
|
+
self.make_button_green(self.esm_dict["CQ"])
|
581
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
582
|
+
elif len(self.callsign.text()) > 2:
|
583
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
584
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
585
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
586
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
587
|
+
|
588
|
+
elif self.current_widget == "other_2":
|
589
|
+
if self.other_2.text() == "":
|
590
|
+
self.make_button_green(self.esm_dict["AGN"])
|
591
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
592
|
+
else:
|
593
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
594
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
595
|
+
buttons_to_send.append("LOGIT")
|
596
|
+
|
597
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
598
|
+
for button in buttons_to_send:
|
599
|
+
if button:
|
600
|
+
if button == "LOGIT":
|
601
|
+
self.save_contact()
|
602
|
+
continue
|
603
|
+
self.process_function_key(button)
|
604
|
+
else:
|
605
|
+
if self.current_widget == "callsign":
|
606
|
+
if len(self.callsign.text()) > 2:
|
607
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
608
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
609
|
+
|
610
|
+
elif self.current_widget == "other_2":
|
611
|
+
if self.other_2.text() == "":
|
612
|
+
self.make_button_green(self.esm_dict["AGN"])
|
613
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
614
|
+
else:
|
615
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
616
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
617
|
+
buttons_to_send.append("LOGIT")
|
618
|
+
|
619
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
620
|
+
for button in buttons_to_send:
|
621
|
+
if button:
|
622
|
+
if button == "LOGIT":
|
623
|
+
self.save_contact()
|
624
|
+
continue
|
625
|
+
self.process_function_key(button)
|
@@ -256,7 +256,7 @@ def cabrillo(self, file_encoding):
|
|
256
256
|
logger.debug("%s", filename)
|
257
257
|
log = self.database.fetch_all_contacts_asc()
|
258
258
|
try:
|
259
|
-
with open(filename, "w", encoding=
|
259
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
260
260
|
output_cabrillo_line(
|
261
261
|
"START-OF-LOG: 3.0",
|
262
262
|
"\r\n",
|
@@ -256,7 +256,7 @@ def cabrillo(self, file_encoding):
|
|
256
256
|
logger.debug("%s", filename)
|
257
257
|
log = self.database.fetch_all_contacts_asc()
|
258
258
|
try:
|
259
|
-
with open(filename, "w", encoding=
|
259
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
260
260
|
output_cabrillo_line(
|
261
261
|
"START-OF-LOG: 3.0",
|
262
262
|
"\r\n",
|
not1mm/plugins/iaru_hf.py
CHANGED
@@ -213,7 +213,7 @@ def cabrillo(self, file_encoding):
|
|
213
213
|
logger.debug("%s", filename)
|
214
214
|
log = self.database.fetch_all_contacts_asc()
|
215
215
|
try:
|
216
|
-
with open(filename, "w", encoding=
|
216
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
217
217
|
output_cabrillo_line(
|
218
218
|
"START-OF-LOG: 3.0",
|
219
219
|
"\r\n",
|
not1mm/plugins/icwc_mst.py
CHANGED
@@ -209,7 +209,7 @@ def cabrillo(self, file_encoding):
|
|
209
209
|
logger.debug("%s", filename)
|
210
210
|
log = self.database.fetch_all_contacts_asc()
|
211
211
|
try:
|
212
|
-
with open(filename, "w", encoding=
|
212
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
213
213
|
output_cabrillo_line(
|
214
214
|
"START-OF-LOG: 3.0",
|
215
215
|
"\r\n",
|
not1mm/plugins/jidx_cw.py
CHANGED
@@ -272,7 +272,7 @@ def cabrillo(self, file_encoding):
|
|
272
272
|
mults = show_mults(self)
|
273
273
|
log = self.database.fetch_all_contacts_asc()
|
274
274
|
try:
|
275
|
-
with open(filename, "w", encoding=
|
275
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
276
276
|
output_cabrillo_line(
|
277
277
|
"START-OF-LOG: 2.0", "\r\n", file_descriptor, file_encoding
|
278
278
|
)
|
not1mm/plugins/jidx_ph.py
CHANGED
@@ -243,7 +243,7 @@ def cabrillo(self, file_encoding):
|
|
243
243
|
mults = show_mults(self)
|
244
244
|
log = self.database.fetch_all_contacts_asc()
|
245
245
|
try:
|
246
|
-
with open(filename, "w", encoding=
|
246
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
247
247
|
output_cabrillo_line(
|
248
248
|
"START-OF-LOG: 2.0", "\r\n", file_descriptor, file_encoding
|
249
249
|
)
|
not1mm/plugins/k1usn_sst.py
CHANGED
@@ -193,7 +193,7 @@ def cabrillo(self, file_encoding):
|
|
193
193
|
logger.debug("%s", filename)
|
194
194
|
log = self.database.fetch_all_contacts_asc()
|
195
195
|
try:
|
196
|
-
with open(filename, "w", encoding=
|
196
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
197
197
|
output_cabrillo_line(
|
198
198
|
"START-OF-LOG: 3.0",
|
199
199
|
"\r\n",
|
@@ -491,3 +491,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
491
491
|
self.save_contact()
|
492
492
|
continue
|
493
493
|
self.process_function_key(button)
|
494
|
+
|
495
|
+
|
496
|
+
def check_call_history(self):
|
497
|
+
""""""
|
498
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
499
|
+
print(f"{result=}")
|
500
|
+
if result:
|
501
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
502
|
+
if self.other_1.text() == "":
|
503
|
+
self.other_1.setText(f"{result.get('Name', '')}")
|
504
|
+
if self.other_2.text() == "":
|
505
|
+
self.other_2.setText(f"{result.get('Exch1', '')}")
|
not1mm/plugins/naqp_cw.py
CHANGED
@@ -219,7 +219,7 @@ def cabrillo(self, file_encoding):
|
|
219
219
|
logger.debug("%s", filename)
|
220
220
|
log = self.database.fetch_all_contacts_asc()
|
221
221
|
try:
|
222
|
-
with open(filename, "w", encoding=
|
222
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
223
223
|
output_cabrillo_line(
|
224
224
|
"START-OF-LOG: 3.0",
|
225
225
|
"\r\n",
|
@@ -477,9 +477,6 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
477
477
|
|
478
478
|
elif self.current_widget == "other_1" or self.current_widget == "other_2":
|
479
479
|
continent = self.contact.get("Continent")
|
480
|
-
print(
|
481
|
-
f"{self.current_widget=} {self.other_1.text().isalpha()=} {self.other_2.text().isalpha()=} {continent=}"
|
482
|
-
)
|
483
480
|
if self.other_1.text() == "" or (
|
484
481
|
self.other_2.text() == "" and continent == "NA"
|
485
482
|
):
|
@@ -544,3 +541,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
544
541
|
self.save_contact()
|
545
542
|
continue
|
546
543
|
self.process_function_key(button)
|
544
|
+
|
545
|
+
|
546
|
+
def check_call_history(self):
|
547
|
+
""""""
|
548
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
549
|
+
print(f"{result=}")
|
550
|
+
if result:
|
551
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
552
|
+
if self.other_1.text() == "":
|
553
|
+
self.other_1.setText(f"{result.get('Name', '')}")
|
554
|
+
if self.other_2.text() == "":
|
555
|
+
self.other_2.setText(f"{result.get('State', '')}")
|
not1mm/plugins/naqp_rtty.py
CHANGED
@@ -222,7 +222,7 @@ def cabrillo(self, file_encoding):
|
|
222
222
|
logger.debug("%s", filename)
|
223
223
|
log = self.database.fetch_all_contacts_asc()
|
224
224
|
try:
|
225
|
-
with open(filename, "w", encoding=
|
225
|
+
with open(filename, "w", encoding=file_encoding) as file_descriptor:
|
226
226
|
output_cabrillo_line(
|
227
227
|
"START-OF-LOG: 3.0",
|
228
228
|
"\r\n",
|
@@ -549,8 +549,6 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
549
549
|
if new_focused_widget is not None:
|
550
550
|
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
551
551
|
|
552
|
-
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
553
|
-
|
554
552
|
for a_button in [
|
555
553
|
self.F1,
|
556
554
|
self.F2,
|
@@ -582,9 +580,6 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
582
580
|
|
583
581
|
elif self.current_widget == "other_1" or self.current_widget == "other_2":
|
584
582
|
continent = self.contact.get("Continent")
|
585
|
-
print(
|
586
|
-
f"{self.current_widget=} {self.other_1.text().isalpha()=} {self.other_2.text().isalpha()=} {continent=}"
|
587
|
-
)
|
588
583
|
if self.other_1.text() == "" or (
|
589
584
|
self.other_2.text() == "" and continent == "NA"
|
590
585
|
):
|
@@ -653,3 +648,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
|
|
653
648
|
continue
|
654
649
|
sendstring = f"{sendstring}{self.process_macro(button.toolTip())} "
|
655
650
|
self.fldigi_util.send_string(sendstring)
|
651
|
+
|
652
|
+
|
653
|
+
def check_call_history(self):
|
654
|
+
""""""
|
655
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
656
|
+
print(f"{result=}")
|
657
|
+
if result:
|
658
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
659
|
+
if self.other_1.text() == "":
|
660
|
+
self.other_1.setText(f"{result.get('Name', '')}")
|
661
|
+
if self.other_2.text() == "":
|
662
|
+
self.other_2.setText(f"{result.get('State', '')}")
|