not1mm 24.3.16__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 (68) 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/select_contest.py +2 -2
  26. not1mm/lib/settings.py +3 -4
  27. not1mm/lib/super_check_partial.py +8 -5
  28. not1mm/lib/version.py +1 -1
  29. not1mm/logwindow.py +62 -105
  30. not1mm/plugins/10_10_fall_cw.py +1 -1
  31. not1mm/plugins/10_10_spring_cw.py +1 -1
  32. not1mm/plugins/10_10_summer_phone.py +1 -1
  33. not1mm/plugins/10_10_winter_phone.py +1 -1
  34. not1mm/plugins/arrl_10m.py +1 -1
  35. not1mm/plugins/arrl_dx_cw.py +1 -1
  36. not1mm/plugins/arrl_dx_ssb.py +1 -1
  37. not1mm/plugins/arrl_field_day.py +1 -1
  38. not1mm/plugins/arrl_ss_cw.py +1 -1
  39. not1mm/plugins/arrl_ss_phone.py +1 -1
  40. not1mm/plugins/arrl_vhf_jan.py +1 -1
  41. not1mm/plugins/arrl_vhf_jun.py +1 -1
  42. not1mm/plugins/arrl_vhf_sep.py +1 -1
  43. not1mm/plugins/canada_day.py +1 -1
  44. not1mm/plugins/cq_160_cw.py +1 -1
  45. not1mm/plugins/cq_160_ssb.py +1 -1
  46. not1mm/plugins/cq_wpx_cw.py +1 -1
  47. not1mm/plugins/cq_wpx_ssb.py +1 -1
  48. not1mm/plugins/cq_ww_cw.py +1 -1
  49. not1mm/plugins/cq_ww_ssb.py +1 -1
  50. not1mm/plugins/cwt.py +1 -1
  51. not1mm/plugins/general_logging.py +1 -1
  52. not1mm/plugins/iaru_hf.py +1 -1
  53. not1mm/plugins/jidx_cw.py +1 -1
  54. not1mm/plugins/jidx_ph.py +1 -1
  55. not1mm/plugins/naqp_cw.py +1 -1
  56. not1mm/plugins/naqp_ssb.py +1 -1
  57. not1mm/plugins/phone_weekly_test.py +1 -1
  58. not1mm/plugins/stew_perry_topband.py +1 -1
  59. not1mm/plugins/winter_field_day.py +1 -1
  60. not1mm/vfo.py +78 -98
  61. {not1mm-24.3.16.dist-info → not1mm-24.3.24.dist-info}/METADATA +67 -55
  62. {not1mm-24.3.16.dist-info → not1mm-24.3.24.dist-info}/RECORD +68 -66
  63. testing/detectdark.py +35 -0
  64. testing/test.py +13 -11
  65. {not1mm-24.3.16.dist-info → not1mm-24.3.24.dist-info}/LICENSE +0 -0
  66. {not1mm-24.3.16.dist-info → not1mm-24.3.24.dist-info}/WHEEL +0 -0
  67. {not1mm-24.3.16.dist-info → not1mm-24.3.24.dist-info}/entry_points.txt +0 -0
  68. {not1mm-24.3.16.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"
@@ -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"
@@ -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"
@@ -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"
@@ -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
@@ -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"
@@ -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"
@@ -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
@@ -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"
@@ -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"
@@ -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
@@ -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
@@ -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
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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 SSB"
18
18
  cabrillo_name = "CQ-WW-SSB"
not1mm/plugins/cwt.py CHANGED
@@ -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
  name = "CWT"
17
17
  mode = "CW" # CW SSB BOTH RTTY
18
18
  # columns = [0, 1, 2, 3, 4, 5, 6, 11, 15]
@@ -9,7 +9,7 @@ from PyQt5 import QtWidgets
9
9
  from not1mm.lib.plugin_common import gen_adif, get_points
10
10
  from not1mm.lib.version import __version__
11
11
 
12
- logger = logging.getLogger("__main__")
12
+ logger = logging.getLogger(__name__)
13
13
 
14
14
  name = "General Logging"
15
15
  cabrillo_name = "General-Logging"
not1mm/plugins/iaru_hf.py CHANGED
@@ -25,7 +25,7 @@ from PyQt5 import QtWidgets
25
25
  from not1mm.lib.plugin_common import gen_adif, get_points
26
26
  from not1mm.lib.version import __version__
27
27
 
28
- logger = logging.getLogger("__main__")
28
+ logger = logging.getLogger(__name__)
29
29
 
30
30
  name = "IARU HF"
31
31
  cabrillo_name = "IARU-HF"
not1mm/plugins/jidx_cw.py CHANGED
@@ -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 = "JIDX CW"
18
18
  cabrillo_name = "JIDX-CW"
not1mm/plugins/jidx_ph.py CHANGED
@@ -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 = "JIDX PH"
18
18
  cabrillo_name = "JIDX-PH"
not1mm/plugins/naqp_cw.py CHANGED
@@ -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 = "NAQP CW"
19
19
  cabrillo_name = "NAQP-CW"
@@ -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 = "NAQP SSB"
19
19
  cabrillo_name = "NAQP-SSB"
@@ -35,7 +35,7 @@ from PyQt5 import QtWidgets
35
35
  from not1mm.lib.plugin_common import gen_adif, get_points
36
36
  from not1mm.lib.version import __version__
37
37
 
38
- logger = logging.getLogger("__main__")
38
+ logger = logging.getLogger(__name__)
39
39
 
40
40
  name = "PHONE WEEKLY TEST"
41
41
  cabrillo_name = "PHONE-WEEKLY-TEST"
@@ -37,7 +37,7 @@ from not1mm.lib.plugin_common import gen_adif, get_points
37
37
  from not1mm.lib.version import __version__
38
38
  from not1mm.lib.ham_utility import distance
39
39
 
40
- logger = logging.getLogger("__main__")
40
+ logger = logging.getLogger(__name__)
41
41
 
42
42
  cabrillo_name = "STEW-PERRY"
43
43
  name = "Stew Perry Topband"
@@ -10,7 +10,7 @@ from PyQt5 import QtWidgets
10
10
  from not1mm.lib.plugin_common import gen_adif, get_points
11
11
  from not1mm.lib.version import __version__
12
12
 
13
- logger = logging.getLogger("__main__")
13
+ logger = logging.getLogger(__name__)
14
14
 
15
15
  cabrillo_name = "WFD"
16
16
  name = "Winter Field Day"