not1mm 24.3.15__py3-none-any.whl → 24.3.24__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 (69) hide show
  1. not1mm/__main__.py +288 -124
  2. not1mm/bandmap.py +207 -191
  3. not1mm/checkwindow.py +62 -109
  4. not1mm/data/MASTER.SCP +1077 -749
  5. not1mm/data/bandmap.ui +4 -4
  6. not1mm/data/checkwindow.ui +9 -16
  7. not1mm/data/cty.json +1 -1
  8. not1mm/data/logwindow.ui +16 -11
  9. not1mm/data/main.ui +16 -6
  10. not1mm/data/vfo.ui +64 -52
  11. not1mm/fsutils.py +63 -0
  12. not1mm/lib/about.py +4 -2
  13. not1mm/lib/cat_interface.py +1 -1
  14. not1mm/lib/cwinterface.py +1 -1
  15. not1mm/lib/database.py +4 -4
  16. not1mm/lib/edit_contact.py +2 -2
  17. not1mm/lib/edit_macro.py +2 -3
  18. not1mm/lib/edit_opon.py +2 -2
  19. not1mm/lib/edit_station.py +3 -3
  20. not1mm/lib/ham_utility.py +1 -1
  21. not1mm/lib/lookup.py +1 -1
  22. not1mm/lib/multicast.py +9 -4
  23. not1mm/lib/n1mm.py +1 -1
  24. not1mm/lib/new_contest.py +2 -2
  25. not1mm/lib/plugin_common.py +3 -2
  26. not1mm/lib/select_contest.py +2 -2
  27. not1mm/lib/settings.py +3 -4
  28. not1mm/lib/super_check_partial.py +8 -5
  29. not1mm/lib/version.py +1 -1
  30. not1mm/logwindow.py +62 -105
  31. not1mm/plugins/10_10_fall_cw.py +3 -1
  32. not1mm/plugins/10_10_spring_cw.py +3 -1
  33. not1mm/plugins/10_10_summer_phone.py +3 -1
  34. not1mm/plugins/10_10_winter_phone.py +3 -1
  35. not1mm/plugins/arrl_10m.py +3 -1
  36. not1mm/plugins/arrl_dx_cw.py +3 -1
  37. not1mm/plugins/arrl_dx_ssb.py +3 -1
  38. not1mm/plugins/arrl_field_day.py +3 -1
  39. not1mm/plugins/arrl_ss_cw.py +3 -1
  40. not1mm/plugins/arrl_ss_phone.py +3 -1
  41. not1mm/plugins/arrl_vhf_jan.py +3 -1
  42. not1mm/plugins/arrl_vhf_jun.py +3 -1
  43. not1mm/plugins/arrl_vhf_sep.py +3 -1
  44. not1mm/plugins/canada_day.py +3 -1
  45. not1mm/plugins/cq_160_cw.py +4 -2
  46. not1mm/plugins/cq_160_ssb.py +4 -2
  47. not1mm/plugins/cq_wpx_cw.py +3 -1
  48. not1mm/plugins/cq_wpx_ssb.py +3 -1
  49. not1mm/plugins/cq_ww_cw.py +3 -1
  50. not1mm/plugins/cq_ww_ssb.py +3 -1
  51. not1mm/plugins/cwt.py +3 -1
  52. not1mm/plugins/general_logging.py +1 -1
  53. not1mm/plugins/iaru_hf.py +3 -1
  54. not1mm/plugins/jidx_cw.py +3 -1
  55. not1mm/plugins/jidx_ph.py +3 -1
  56. not1mm/plugins/naqp_cw.py +3 -1
  57. not1mm/plugins/naqp_ssb.py +3 -1
  58. not1mm/plugins/phone_weekly_test.py +3 -1
  59. not1mm/plugins/stew_perry_topband.py +3 -1
  60. not1mm/plugins/winter_field_day.py +3 -1
  61. not1mm/vfo.py +78 -98
  62. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/METADATA +68 -55
  63. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/RECORD +69 -67
  64. testing/detectdark.py +35 -0
  65. testing/test.py +13 -11
  66. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/LICENSE +0 -0
  67. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/WHEEL +0 -0
  68. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/entry_points.txt +0 -0
  69. {not1mm-24.3.15.dist-info → not1mm-24.3.24.dist-info}/top_level.txt +0 -0
not1mm/logwindow.py CHANGED
@@ -6,45 +6,26 @@ Display current log
6
6
  # pylint: disable=logging-fstring-interpolation, too-many-lines
7
7
  # QTableWidget
8
8
  # focusedLog, generalLog
9
+
9
10
  import logging
10
- import math
11
11
  import os
12
-
13
- # import pkgutil
14
12
  import platform
15
13
  import queue
16
- import sys
17
-
18
- from json import JSONDecodeError, loads, dumps
19
- from pathlib import Path
14
+ from json import loads
20
15
 
21
- from PyQt5 import QtCore, QtGui, QtWidgets, uic, Qt
22
- from PyQt5.QtCore import QDir, QItemSelectionModel
23
- from PyQt5 import QtNetwork
24
- from PyQt5.QtGui import QFontDatabase
16
+ import math
17
+ from PyQt5 import QtCore, QtGui, QtWidgets, uic
18
+ from PyQt5.QtCore import Qt, QItemSelectionModel
25
19
 
20
+ import not1mm.fsutils as fsutils
26
21
  from not1mm.lib.database import DataBase
27
- from not1mm.lib.multicast import Multicast
28
22
  from not1mm.lib.edit_contact import EditContact
23
+ from not1mm.lib.multicast import Multicast
29
24
  from not1mm.lib.n1mm import N1MM
30
25
 
31
- os.environ["QT_QPA_PLATFORMTHEME"] = "gnome"
32
-
33
- WORKING_PATH = os.path.dirname(__loader__.get_filename())
26
+ logger = logging.getLogger(__name__)
34
27
 
35
- if "XDG_DATA_HOME" in os.environ:
36
- DATA_PATH = os.environ.get("XDG_DATA_HOME")
37
- else:
38
- DATA_PATH = str(Path.home() / ".local" / "share")
39
- DATA_PATH += "/not1mm"
40
-
41
- if "XDG_CONFIG_HOME" in os.environ:
42
- CONFIG_PATH = os.environ.get("XDG_CONFIG_HOME")
43
- else:
44
- CONFIG_PATH = str(Path.home() / ".config")
45
- CONFIG_PATH += "/not1mm"
46
-
47
- DARK_STYLESHEET = ""
28
+ # os.environ["QT_QPA_PLATFORMTHEME"] = "gnome"
48
29
 
49
30
 
50
31
  def safe_float(the_input: any, default=0.0) -> float:
@@ -72,7 +53,7 @@ def safe_float(the_input: any, default=0.0) -> float:
72
53
  return default
73
54
 
74
55
 
75
- class MainWindow(QtWidgets.QMainWindow):
56
+ class LogWindow(QtWidgets.QWidget):
76
57
  """
77
58
  The main window
78
59
  """
@@ -113,21 +94,22 @@ class MainWindow(QtWidgets.QMainWindow):
113
94
  self.udp_fifo = queue.Queue()
114
95
  self.n1mm = None
115
96
  self.load_pref()
116
- if self.pref.get("dark_mode"):
117
- self.setStyleSheet(DARK_STYLESHEET)
118
- self.dbname = DATA_PATH + "/" + self.pref.get("current_database", "ham.db")
119
- self.database = DataBase(self.dbname, WORKING_PATH)
97
+
98
+ self.dbname = fsutils.USER_DATA_PATH / self.pref.get(
99
+ "current_database", "ham.db"
100
+ )
101
+ self.database = DataBase(self.dbname, fsutils.USER_DATA_PATH)
102
+
120
103
  self.database.current_contest = self.pref.get("contest", 0)
121
104
  self.contact = self.database.empty_contact
122
- data_path = WORKING_PATH + "/data/logwindow.ui"
123
- uic.loadUi(data_path, self)
105
+ uic.loadUi(fsutils.APP_DATA_PATH / "logwindow.ui", self)
124
106
  self.setWindowTitle(
125
- f"Log Display - {self.pref.get('current_database', 'ham.db')}"
107
+ f"QSO History - {self.pref.get('current_database', 'ham.db')}"
126
108
  )
127
109
  self.generalLog.setColumnCount(len(self.columns))
128
110
  self.focusedLog.setColumnCount(len(self.columns))
129
- icon_path = WORKING_PATH + "/data/"
130
- self.checkmark = QtGui.QPixmap(icon_path + "check.png")
111
+
112
+ self.checkmark = QtGui.QPixmap(str(fsutils.APP_DATA_PATH / "check.png"))
131
113
  self.checkicon = QtGui.QIcon()
132
114
  self.checkicon.addPixmap(self.checkmark)
133
115
  self.generalLog.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
@@ -181,11 +163,38 @@ class MainWindow(QtWidgets.QMainWindow):
181
163
 
182
164
  self.multicast_interface.send_as_json(cmd)
183
165
 
184
- def quit_app(self):
185
- """
186
- Quit the application.
187
- """
188
- app.quit()
166
+ def set_dark_mode(self, dark: bool):
167
+ """testing"""
168
+
169
+ if dark:
170
+ dark_palette = QtGui.QPalette()
171
+ dark_color = QtGui.QColor(45, 45, 45)
172
+ disabled_color = QtGui.QColor(127, 127, 127)
173
+ dark_palette.setColor(QtGui.QPalette.Window, dark_color)
174
+ dark_palette.setColor(QtGui.QPalette.WindowText, Qt.white)
175
+ dark_palette.setColor(QtGui.QPalette.Base, QtGui.QColor(18, 18, 18))
176
+ dark_palette.setColor(QtGui.QPalette.AlternateBase, dark_color)
177
+ dark_palette.setColor(QtGui.QPalette.Text, Qt.white)
178
+ dark_palette.setColor(
179
+ QtGui.QPalette.Disabled, QtGui.QPalette.Text, disabled_color
180
+ )
181
+ dark_palette.setColor(QtGui.QPalette.Button, dark_color)
182
+ dark_palette.setColor(QtGui.QPalette.ButtonText, Qt.white)
183
+ dark_palette.setColor(
184
+ QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, disabled_color
185
+ )
186
+ dark_palette.setColor(QtGui.QPalette.BrightText, Qt.red)
187
+ dark_palette.setColor(QtGui.QPalette.Link, QtGui.QColor(42, 130, 218))
188
+ dark_palette.setColor(QtGui.QPalette.Highlight, QtGui.QColor(42, 130, 218))
189
+ dark_palette.setColor(QtGui.QPalette.HighlightedText, Qt.black)
190
+ dark_palette.setColor(
191
+ QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, disabled_color
192
+ )
193
+
194
+ self.setPalette(dark_palette)
195
+ else:
196
+ palette = self.style().standardPalette()
197
+ self.setPalette(palette)
189
198
 
190
199
  def get_column(self, name: str) -> int:
191
200
  """
@@ -218,9 +227,9 @@ class MainWindow(QtWidgets.QMainWindow):
218
227
  None
219
228
  """
220
229
  try:
221
- if os.path.exists(CONFIG_PATH + "/not1mm.json"):
230
+ if os.path.exists(fsutils.CONFIG_FILE):
222
231
  with open(
223
- CONFIG_PATH + "/not1mm.json", "rt", encoding="utf-8"
232
+ fsutils.CONFIG_FILE, "rt", encoding="utf-8"
224
233
  ) as file_descriptor:
225
234
  self.pref = loads(file_descriptor.read())
226
235
  logger.info("%s", self.pref)
@@ -244,6 +253,7 @@ class MainWindow(QtWidgets.QMainWindow):
244
253
  self.n1mm.send_lookup_packets = self.pref.get("send_n1mm_lookup", False)
245
254
  self.n1mm.send_score_packets = self.pref.get("send_n1mm_score", False)
246
255
  self.n1mm.radio_info["StationName"] = self.pref.get("n1mm_station_name", "")
256
+ self.set_dark_mode(self.pref.get("darkmode", False))
247
257
 
248
258
  def load_new_db(self) -> None:
249
259
  """
@@ -258,8 +268,10 @@ class MainWindow(QtWidgets.QMainWindow):
258
268
  None
259
269
  """
260
270
  self.load_pref()
261
- self.dbname = DATA_PATH + "/" + self.pref.get("current_database", "ham.db")
262
- self.database = DataBase(self.dbname, WORKING_PATH)
271
+ self.dbname = fsutils.USER_DATA_PATH / self.pref.get(
272
+ "current_database", "ham.db"
273
+ )
274
+ self.database = DataBase(self.dbname, fsutils.APP_DATA_PATH)
263
275
  self.database.current_contest = self.pref.get("contest", 0)
264
276
  self.contact = self.database.empty_contact
265
277
  self.get_log()
@@ -567,9 +579,7 @@ class MainWindow(QtWidgets.QMainWindow):
567
579
  None
568
580
  """
569
581
  logger.debug("Edit: %s", uuid)
570
- self.edit_contact_dialog = EditContact(WORKING_PATH)
571
- if self.pref.get("dark_mode"):
572
- self.edit_contact_dialog.setStyleSheet(DARK_STYLESHEET)
582
+ self.edit_contact_dialog = EditContact(fsutils.APP_DATA_PATH)
573
583
  self.edit_contact_dialog.accepted.connect(self.save_edited_contact)
574
584
  self.contact = self.database.fetch_contact_by_uuid(uuid)
575
585
  self.edit_contact_dialog.delete_2.clicked.connect(self.delete_contact)
@@ -899,8 +909,8 @@ class MainWindow(QtWidgets.QMainWindow):
899
909
  column = "Freq (Khz)"
900
910
  self.generalLog.setColumnHidden(self.get_column(column), False)
901
911
  self.focusedLog.setColumnHidden(self.get_column(column), False)
902
- if json_data.get("cmd", "") == "HALT":
903
- self.quit_app()
912
+ if json_data.get("cmd", "") == "DARKMODE":
913
+ self.set_dark_mode(json_data.get("state", False))
904
914
 
905
915
  def show_like_calls(self, call: str) -> None:
906
916
  """
@@ -1076,56 +1086,3 @@ class MainWindow(QtWidgets.QMainWindow):
1076
1086
  message_box.setWindowTitle("Information")
1077
1087
  message_box.setStandardButtons(QtWidgets.QMessageBox.Ok)
1078
1088
  _ = message_box.exec_()
1079
-
1080
-
1081
- def load_fonts_from_dir(directory: str) -> set:
1082
- """
1083
- Loads all fonts from a directory.
1084
-
1085
- Parameters
1086
- ----------
1087
- directory : str
1088
- The directory to load fonts from.
1089
-
1090
- Returns
1091
- -------
1092
- set
1093
- The set of font families.
1094
- """
1095
- font_families = set()
1096
- for _fi in QDir(directory).entryInfoList(["*.ttf", "*.woff", "*.woff2"]):
1097
- _id = QFontDatabase.addApplicationFont(_fi.absoluteFilePath())
1098
- font_families |= set(QFontDatabase.applicationFontFamilies(_id))
1099
- return font_families
1100
-
1101
-
1102
- def main():
1103
- """main entry"""
1104
- sys.exit(app.exec())
1105
-
1106
-
1107
- logger = logging.getLogger("__main__")
1108
- handler = logging.StreamHandler()
1109
- formatter = logging.Formatter(
1110
- datefmt="%H:%M:%S",
1111
- fmt="[%(asctime)s] %(levelname)s %(module)s - %(funcName)s Line %(lineno)d:\n%(message)s",
1112
- )
1113
- handler.setFormatter(formatter)
1114
- logger.addHandler(handler)
1115
-
1116
- if Path("./debug").exists():
1117
- logger.setLevel(logging.DEBUG)
1118
- logger.debug("debugging on")
1119
- else:
1120
- logger.setLevel(logging.WARNING)
1121
- logger.warning("debugging off")
1122
-
1123
- app = QtWidgets.QApplication(sys.argv)
1124
- app.setStyle("Adwaita-Dark")
1125
- font_path = WORKING_PATH + "/data"
1126
- _families = load_fonts_from_dir(os.fspath(font_path))
1127
- window = MainWindow()
1128
- window.show()
1129
-
1130
- if __name__ == "__main__":
1131
- main()
@@ -11,7 +11,7 @@ from PyQt5 import QtWidgets
11
11
  from not1mm.lib.plugin_common import gen_adif, get_points
12
12
  from not1mm.lib.version import __version__
13
13
 
14
- logger = logging.getLogger("__main__")
14
+ logger = logging.getLogger(__name__)
15
15
 
16
16
  name = "10 10 FALL CW"
17
17
  cabrillo_name = "10-10-FALL-CW"
@@ -331,8 +331,10 @@ def cabrillo(self):
331
331
  file=file_descriptor,
332
332
  )
333
333
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
334
+ self.show_message_box(f"Cabrillo saved to: {filename}")
334
335
  except IOError as exception:
335
336
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
337
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
336
338
  return
337
339
 
338
340
 
@@ -11,7 +11,7 @@ from PyQt5 import QtWidgets
11
11
  from not1mm.lib.plugin_common import gen_adif, get_points
12
12
  from not1mm.lib.version import __version__
13
13
 
14
- logger = logging.getLogger("__main__")
14
+ logger = logging.getLogger(__name__)
15
15
 
16
16
  name = "10 10 SPRING CW"
17
17
  cabrillo_name = "10-10-SPRING-CW"
@@ -331,8 +331,10 @@ def cabrillo(self):
331
331
  file=file_descriptor,
332
332
  )
333
333
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
334
+ self.show_message_box(f"Cabrillo saved to: {filename}")
334
335
  except IOError as exception:
335
336
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
337
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
336
338
  return
337
339
 
338
340
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "10 10 SUMMER PHONE"
18
18
  cabrillo_name = "10-10-SUMMER-PHONE"
@@ -332,8 +332,10 @@ def cabrillo(self):
332
332
  file=file_descriptor,
333
333
  )
334
334
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
335
+ self.show_message_box(f"Cabrillo saved to: {filename}")
335
336
  except IOError as exception:
336
337
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
338
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
337
339
  return
338
340
 
339
341
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "10 10 WINTER PHONE"
18
18
  cabrillo_name = "10-10-WINTER-PHONE"
@@ -332,8 +332,10 @@ def cabrillo(self):
332
332
  file=file_descriptor,
333
333
  )
334
334
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
335
+ self.show_message_box(f"Cabrillo saved to: {filename}")
335
336
  except IOError as exception:
336
337
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
338
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
337
339
  return
338
340
 
339
341
 
@@ -55,7 +55,7 @@ from PyQt5 import QtWidgets
55
55
  from not1mm.lib.plugin_common import gen_adif, get_points
56
56
  from not1mm.lib.version import __version__
57
57
 
58
- logger = logging.getLogger("__main__")
58
+ logger = logging.getLogger(__name__)
59
59
 
60
60
  name = "ARRL 10M"
61
61
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -414,8 +414,10 @@ def cabrillo(self):
414
414
  file=file_descriptor,
415
415
  )
416
416
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
417
+ self.show_message_box(f"Cabrillo saved to: {filename}")
417
418
  except IOError as exception:
418
419
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
420
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
419
421
  return
420
422
 
421
423
 
@@ -13,7 +13,7 @@ from PyQt5 import QtWidgets
13
13
  from not1mm.lib.plugin_common import gen_adif, get_points
14
14
  from not1mm.lib.version import __version__
15
15
 
16
- logger = logging.getLogger("__main__")
16
+ logger = logging.getLogger(__name__)
17
17
 
18
18
  name = "ARRL DX CW"
19
19
  cabrillo_name = "ARRL-DX-CW"
@@ -356,8 +356,10 @@ def cabrillo(self):
356
356
  file=file_descriptor,
357
357
  )
358
358
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
359
+ self.show_message_box(f"Cabrillo saved to: {filename}")
359
360
  except IOError as exception:
360
361
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
362
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
361
363
  return
362
364
 
363
365
 
@@ -13,7 +13,7 @@ from PyQt5 import QtWidgets
13
13
  from not1mm.lib.plugin_common import gen_adif, get_points
14
14
  from not1mm.lib.version import __version__
15
15
 
16
- logger = logging.getLogger("__main__")
16
+ logger = logging.getLogger(__name__)
17
17
 
18
18
  name = "ARRL DX SSB"
19
19
  cabrillo_name = "ARRL-DX-SSB"
@@ -356,8 +356,10 @@ def cabrillo(self):
356
356
  file=file_descriptor,
357
357
  )
358
358
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
359
+ self.show_message_box(f"Cabrillo saved to: {filename}")
359
360
  except IOError as exception:
360
361
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
362
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
361
363
  return
362
364
 
363
365
 
@@ -11,7 +11,7 @@ from PyQt5 import QtWidgets
11
11
  from not1mm.lib.plugin_common import gen_adif, get_points
12
12
  from not1mm.lib.version import __version__
13
13
 
14
- logger = logging.getLogger("__main__")
14
+ logger = logging.getLogger(__name__)
15
15
 
16
16
  name = "ARRL Field Day"
17
17
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -308,8 +308,10 @@ def cabrillo(self):
308
308
  file=file_descriptor,
309
309
  )
310
310
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
311
+ self.show_message_box(f"Cabrillo saved to: {filename}")
311
312
  except IOError as exception:
312
313
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
314
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
313
315
  return
314
316
 
315
317
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "ARRL Sweepstakes CW"
18
18
  cabrillo_name = "ARRL-SS-CW"
@@ -346,8 +346,10 @@ def cabrillo(self):
346
346
  file=file_descriptor,
347
347
  )
348
348
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
349
+ self.show_message_box(f"Cabrillo saved to: {filename}")
349
350
  except IOError as exception:
350
351
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
352
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
351
353
  return
352
354
 
353
355
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "ARRL Sweepstakes Phone"
18
18
  cabrillo_name = "ARRL-SS-SSB"
@@ -346,8 +346,10 @@ def cabrillo(self):
346
346
  file=file_descriptor,
347
347
  )
348
348
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
349
+ self.show_message_box(f"Cabrillo saved to: {filename}")
349
350
  except IOError as exception:
350
351
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
352
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
351
353
  return
352
354
 
353
355
 
@@ -46,7 +46,7 @@ from PyQt5 import QtWidgets
46
46
  from not1mm.lib.plugin_common import gen_adif, get_points
47
47
  from not1mm.lib.version import __version__
48
48
 
49
- logger = logging.getLogger("__main__")
49
+ logger = logging.getLogger(__name__)
50
50
 
51
51
  name = "ARRL VHF JAN"
52
52
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -390,8 +390,10 @@ def cabrillo(self):
390
390
  file=file_descriptor,
391
391
  )
392
392
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
393
+ self.show_message_box(f"Cabrillo saved to: {filename}")
393
394
  except IOError as exception:
394
395
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
396
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
395
397
  return
396
398
 
397
399
 
@@ -14,7 +14,7 @@ from PyQt5 import QtWidgets
14
14
  from not1mm.lib.plugin_common import gen_adif, get_points
15
15
  from not1mm.lib.version import __version__
16
16
 
17
- logger = logging.getLogger("__main__")
17
+ logger = logging.getLogger(__name__)
18
18
 
19
19
  name = "ARRL VHF JUN"
20
20
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -358,8 +358,10 @@ def cabrillo(self):
358
358
  file=file_descriptor,
359
359
  )
360
360
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
361
+ self.show_message_box(f"Cabrillo saved to: {filename}")
361
362
  except IOError as exception:
362
363
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
364
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
363
365
  return
364
366
 
365
367
 
@@ -14,7 +14,7 @@ from PyQt5 import QtWidgets
14
14
  from not1mm.lib.plugin_common import gen_adif, get_points
15
15
  from not1mm.lib.version import __version__
16
16
 
17
- logger = logging.getLogger("__main__")
17
+ logger = logging.getLogger(__name__)
18
18
 
19
19
  name = "ARRL VHF SEP"
20
20
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -358,8 +358,10 @@ def cabrillo(self):
358
358
  file=file_descriptor,
359
359
  )
360
360
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
361
+ self.show_message_box(f"Cabrillo saved to: {filename}")
361
362
  except IOError as exception:
362
363
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
364
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
363
365
  return
364
366
 
365
367
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "CANADA DAY"
18
18
  cabrillo_name = "CANADA-DAY"
@@ -388,8 +388,10 @@ def cabrillo(self):
388
388
  file=file_descriptor,
389
389
  )
390
390
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
391
+ self.show_message_box(f"Cabrillo saved to: {filename}")
391
392
  except IOError as exception:
392
393
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
394
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
393
395
  return
394
396
 
395
397
 
@@ -1,6 +1,6 @@
1
1
  """CQ 160 CW plugin"""
2
2
 
3
- # pylint: disable=invalid-name, c-extension-no-member, unused-import
3
+ # pylint: disable=invalid-name, c-extension-no-member, unused-import, line-too-long
4
4
 
5
5
  import datetime
6
6
  import logging
@@ -13,7 +13,7 @@ from PyQt5 import QtWidgets
13
13
  from not1mm.lib.plugin_common import gen_adif
14
14
  from not1mm.lib.version import __version__
15
15
 
16
- logger = logging.getLogger("__main__")
16
+ logger = logging.getLogger(__name__)
17
17
 
18
18
  name = "CQ 160 CW"
19
19
  cabrillo_name = "CQ-160-CW"
@@ -363,8 +363,10 @@ def cabrillo(self):
363
363
  file=file_descriptor,
364
364
  )
365
365
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
366
+ self.show_message_box(f"Cabrillo saved to: {filename}")
366
367
  except IOError as exception:
367
368
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
369
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
368
370
  return
369
371
 
370
372
 
@@ -1,6 +1,6 @@
1
1
  """CQ 160 CW plugin"""
2
2
 
3
- # pylint: disable=invalid-name, c-extension-no-member, unused-import
3
+ # pylint: disable=invalid-name, c-extension-no-member, unused-import, line-too-long, too-many-lines, no-name-in-module
4
4
 
5
5
  import datetime
6
6
  import logging
@@ -13,7 +13,7 @@ from PyQt5 import QtWidgets
13
13
  from not1mm.lib.plugin_common import gen_adif
14
14
  from not1mm.lib.version import __version__
15
15
 
16
- logger = logging.getLogger("__main__")
16
+ logger = logging.getLogger(__name__)
17
17
 
18
18
  name = "CQ 160 SSB"
19
19
  cabrillo_name = "CQ-160-SSB"
@@ -363,8 +363,10 @@ def cabrillo(self):
363
363
  file=file_descriptor,
364
364
  )
365
365
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
366
+ self.show_message_box(f"Cabrillo saved to: {filename}")
366
367
  except IOError as exception:
367
368
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
369
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
368
370
  return
369
371
 
370
372
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "CQ WPX CW"
18
18
  cabrillo_name = "CQ-WPX-CW"
@@ -362,8 +362,10 @@ def cabrillo(self):
362
362
  file=file_descriptor,
363
363
  )
364
364
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
365
+ self.show_message_box(f"Cabrillo saved to: {filename}")
365
366
  except IOError as exception:
366
367
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
368
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
367
369
  return
368
370
 
369
371
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "CQ WPX SSB"
18
18
  cabrillo_name = "CQ-WPX-SSB"
@@ -364,8 +364,10 @@ def cabrillo(self):
364
364
  file=file_descriptor,
365
365
  )
366
366
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
367
+ self.show_message_box(f"Cabrillo saved to: {filename}")
367
368
  except IOError as exception:
368
369
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
370
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
369
371
  return
370
372
 
371
373
 
@@ -12,7 +12,7 @@ from PyQt5 import QtWidgets
12
12
  from not1mm.lib.plugin_common import gen_adif, get_points
13
13
  from not1mm.lib.version import __version__
14
14
 
15
- logger = logging.getLogger("__main__")
15
+ logger = logging.getLogger(__name__)
16
16
 
17
17
  name = "CQ WW CW"
18
18
  cabrillo_name = "CQ-WW-CW"
@@ -333,8 +333,10 @@ def cabrillo(self):
333
333
  file=file_descriptor,
334
334
  )
335
335
  print("END-OF-LOG:", end="\r\n", file=file_descriptor)
336
+ self.show_message_box(f"Cabrillo saved to: {filename}")
336
337
  except IOError as exception:
337
338
  logger.critical("cabrillo: IO error: %s, writing to %s", exception, filename)
339
+ self.show_message_box(f"Error saving Cabrillo: {exception} {filename}")
338
340
  return
339
341
 
340
342