not1mm 24.4.1.2__py3-none-any.whl → 24.4.2.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.
Files changed (56) hide show
  1. not1mm/__main__.py +137 -90
  2. not1mm/bandmap.py +50 -23
  3. not1mm/checkwindow.py +45 -21
  4. not1mm/data/checkwindow.ui +1 -1
  5. not1mm/data/cty.json +1 -1
  6. not1mm/data/vfo.ui +18 -0
  7. not1mm/lib/about.py +1 -1
  8. not1mm/lib/edit_contact.py +1 -1
  9. not1mm/lib/edit_macro.py +1 -1
  10. not1mm/lib/edit_opon.py +1 -1
  11. not1mm/lib/edit_station.py +2 -1
  12. not1mm/lib/lookup.py +6 -0
  13. not1mm/lib/multicast.py +7 -5
  14. not1mm/lib/new_contest.py +1 -1
  15. not1mm/lib/select_contest.py +1 -1
  16. not1mm/lib/settings.py +1 -1
  17. not1mm/lib/version.py +1 -1
  18. not1mm/logwindow.py +59 -23
  19. not1mm/plugins/10_10_fall_cw.py +1 -1
  20. not1mm/plugins/10_10_spring_cw.py +1 -2
  21. not1mm/plugins/10_10_summer_phone.py +1 -1
  22. not1mm/plugins/10_10_winter_phone.py +1 -1
  23. not1mm/plugins/arrl_10m.py +1 -1
  24. not1mm/plugins/arrl_dx_cw.py +1 -1
  25. not1mm/plugins/arrl_dx_ssb.py +1 -1
  26. not1mm/plugins/arrl_field_day.py +1 -1
  27. not1mm/plugins/arrl_rtty_ru.py +1 -1
  28. not1mm/plugins/arrl_ss_cw.py +3 -3
  29. not1mm/plugins/arrl_ss_phone.py +3 -3
  30. not1mm/plugins/arrl_vhf_jan.py +1 -1
  31. not1mm/plugins/arrl_vhf_jun.py +1 -1
  32. not1mm/plugins/arrl_vhf_sep.py +1 -1
  33. not1mm/plugins/canada_day.py +1 -1
  34. not1mm/plugins/cq_160_cw.py +1 -1
  35. not1mm/plugins/cq_160_ssb.py +1 -1
  36. not1mm/plugins/cq_wpx_cw.py +1 -1
  37. not1mm/plugins/cq_wpx_ssb.py +1 -1
  38. not1mm/plugins/cq_ww_cw.py +1 -1
  39. not1mm/plugins/cq_ww_ssb.py +1 -1
  40. not1mm/plugins/cwt.py +1 -1
  41. not1mm/plugins/general_logging.py +1 -1
  42. not1mm/plugins/iaru_hf.py +1 -1
  43. not1mm/plugins/jidx_cw.py +1 -1
  44. not1mm/plugins/jidx_ph.py +1 -1
  45. not1mm/plugins/naqp_cw.py +1 -1
  46. not1mm/plugins/naqp_ssb.py +1 -1
  47. not1mm/plugins/phone_weekly_test.py +1 -1
  48. not1mm/plugins/stew_perry_topband.py +1 -1
  49. not1mm/plugins/winter_field_day.py +1 -1
  50. not1mm/vfo.py +55 -25
  51. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/METADATA +9 -8
  52. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/RECORD +56 -56
  53. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/LICENSE +0 -0
  54. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/WHEEL +0 -0
  55. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/entry_points.txt +0 -0
  56. {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.1.dist-info}/top_level.txt +0 -0
not1mm/checkwindow.py CHANGED
@@ -12,10 +12,9 @@ import queue
12
12
  from json import loads
13
13
  import Levenshtein
14
14
 
15
- from PyQt5 import QtGui, uic
16
- from PyQt5.QtCore import Qt
17
- from PyQt5.QtWidgets import QLabel, QVBoxLayout, QWidget, QDockWidget
18
- from PyQt5.QtGui import QMouseEvent
15
+ from PyQt6 import QtGui, uic, QtCore
16
+ from PyQt6.QtWidgets import QLabel, QVBoxLayout, QWidget, QDockWidget
17
+ from PyQt6.QtGui import QMouseEvent, QColorConstants
19
18
 
20
19
  import not1mm.fsutils as fsutils
21
20
  from not1mm.lib.database import DataBase
@@ -41,8 +40,8 @@ class CheckWindow(QDockWidget):
41
40
 
42
41
  masterScrollWidget: QWidget = None
43
42
 
44
- def __init__(self, *args, **kwargs):
45
- super().__init__(*args, **kwargs)
43
+ def __init__(self):
44
+ super().__init__()
46
45
  self.load_pref()
47
46
  self.dbname = fsutils.USER_DATA_PATH / self.pref.get(
48
47
  "current_database", "ham.db"
@@ -51,7 +50,12 @@ class CheckWindow(QDockWidget):
51
50
  self.database.current_contest = self.pref.get("contest", 0)
52
51
 
53
52
  uic.loadUi(fsutils.APP_DATA_PATH / "checkwindow.ui", self)
54
-
53
+ self.setFeatures(
54
+ QDockWidget.DockWidgetFeature.DockWidgetMovable
55
+ | QDockWidget.DockWidgetFeature.DockWidgetFloatable
56
+ | QDockWidget.DockWidgetFeature.DockWidgetClosable
57
+ )
58
+ self.setAllowedAreas(QtCore.Qt.DockWidgetArea.AllDockWidgetAreas)
55
59
  self.mscp = SCP(fsutils.APP_DATA_PATH)
56
60
  self._udpwatch = None
57
61
  self.udp_fifo = queue.Queue()
@@ -78,25 +82,45 @@ class CheckWindow(QDockWidget):
78
82
  darkPalette = QtGui.QPalette()
79
83
  darkColor = QtGui.QColor(56, 56, 56)
80
84
  disabledColor = QtGui.QColor(127, 127, 127)
81
- darkPalette.setColor(QtGui.QPalette.Window, darkColor)
82
- darkPalette.setColor(QtGui.QPalette.WindowText, Qt.white)
83
- darkPalette.setColor(QtGui.QPalette.Base, QtGui.QColor(45, 45, 45))
84
- darkPalette.setColor(QtGui.QPalette.AlternateBase, darkColor)
85
- darkPalette.setColor(QtGui.QPalette.Text, Qt.white)
85
+ darkPalette.setColor(QtGui.QPalette.ColorRole.Window, darkColor)
86
+ darkPalette.setColor(
87
+ QtGui.QPalette.ColorRole.WindowText, QColorConstants.White
88
+ )
89
+ darkPalette.setColor(
90
+ QtGui.QPalette.ColorRole.Base, QtGui.QColor(45, 45, 45)
91
+ )
92
+ darkPalette.setColor(QtGui.QPalette.ColorRole.AlternateBase, darkColor)
93
+ darkPalette.setColor(QtGui.QPalette.ColorRole.Text, QColorConstants.White)
94
+ darkPalette.setColor(
95
+ QtGui.QPalette.ColorGroup.Disabled,
96
+ QtGui.QPalette.ColorRole.Text,
97
+ disabledColor,
98
+ )
99
+ darkPalette.setColor(QtGui.QPalette.ColorRole.Button, darkColor)
100
+ darkPalette.setColor(
101
+ QtGui.QPalette.ColorRole.ButtonText, QColorConstants.White
102
+ )
103
+ darkPalette.setColor(
104
+ QtGui.QPalette.ColorGroup.Disabled,
105
+ QtGui.QPalette.ColorRole.ButtonText,
106
+ disabledColor,
107
+ )
108
+ darkPalette.setColor(
109
+ QtGui.QPalette.ColorRole.BrightText, QColorConstants.Red
110
+ )
111
+ darkPalette.setColor(
112
+ QtGui.QPalette.ColorRole.Link, QtGui.QColor(42, 130, 218)
113
+ )
86
114
  darkPalette.setColor(
87
- QtGui.QPalette.Disabled, QtGui.QPalette.Text, disabledColor
115
+ QtGui.QPalette.ColorRole.Highlight, QtGui.QColor(42, 130, 218)
88
116
  )
89
- darkPalette.setColor(QtGui.QPalette.Button, darkColor)
90
- darkPalette.setColor(QtGui.QPalette.ButtonText, Qt.white)
91
117
  darkPalette.setColor(
92
- QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, disabledColor
118
+ QtGui.QPalette.ColorRole.HighlightedText, QColorConstants.Black
93
119
  )
94
- darkPalette.setColor(QtGui.QPalette.BrightText, Qt.red)
95
- darkPalette.setColor(QtGui.QPalette.Link, QtGui.QColor(42, 130, 218))
96
- darkPalette.setColor(QtGui.QPalette.Highlight, QtGui.QColor(42, 130, 218))
97
- darkPalette.setColor(QtGui.QPalette.HighlightedText, Qt.black)
98
120
  darkPalette.setColor(
99
- QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, disabledColor
121
+ QtGui.QPalette.ColorGroup.Disabled,
122
+ QtGui.QPalette.ColorRole.HighlightedText,
123
+ disabledColor,
100
124
  )
101
125
 
102
126
  self.setPalette(darkPalette)
@@ -154,7 +154,7 @@
154
154
  </font>
155
155
  </property>
156
156
  <property name="text">
157
- <string>DXC</string>
157
+ <string>Telnet</string>
158
158
  </property>
159
159
  </widget>
160
160
  </item>