not1mm 24.4.1.2__py3-none-any.whl → 24.4.2__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 +118 -74
- not1mm/bandmap.py +41 -20
- not1mm/checkwindow.py +38 -18
- not1mm/data/checkwindow.ui +1 -1
- not1mm/data/cty.json +1 -1
- not1mm/data/vfo.ui +6 -0
- not1mm/lib/about.py +1 -1
- not1mm/lib/edit_contact.py +1 -1
- not1mm/lib/edit_macro.py +1 -1
- not1mm/lib/edit_opon.py +1 -1
- not1mm/lib/edit_station.py +2 -1
- not1mm/lib/multicast.py +7 -5
- not1mm/lib/new_contest.py +1 -1
- not1mm/lib/select_contest.py +1 -1
- not1mm/lib/settings.py +1 -1
- not1mm/lib/version.py +1 -1
- not1mm/logwindow.py +51 -21
- not1mm/plugins/10_10_fall_cw.py +1 -1
- not1mm/plugins/10_10_spring_cw.py +1 -2
- 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_rtty_ru.py +1 -1
- not1mm/plugins/arrl_ss_cw.py +3 -3
- not1mm/plugins/arrl_ss_phone.py +3 -3
- 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_ssb.py +1 -1
- not1mm/plugins/cq_ww_cw.py +1 -1
- not1mm/plugins/cq_ww_ssb.py +1 -1
- not1mm/plugins/cwt.py +1 -1
- not1mm/plugins/general_logging.py +1 -1
- not1mm/plugins/iaru_hf.py +1 -1
- not1mm/plugins/jidx_cw.py +1 -1
- not1mm/plugins/jidx_ph.py +1 -1
- not1mm/plugins/naqp_cw.py +1 -1
- not1mm/plugins/naqp_ssb.py +1 -1
- not1mm/plugins/phone_weekly_test.py +1 -1
- not1mm/plugins/stew_perry_topband.py +1 -1
- not1mm/plugins/winter_field_day.py +1 -1
- not1mm/vfo.py +44 -21
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/METADATA +4 -3
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/RECORD +55 -55
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/LICENSE +0 -0
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/WHEEL +0 -0
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/entry_points.txt +0 -0
- {not1mm-24.4.1.2.dist-info → not1mm-24.4.2.dist-info}/top_level.txt +0 -0
not1mm/data/vfo.ui
CHANGED
@@ -31,6 +31,12 @@
|
|
31
31
|
<pointsize>25</pointsize>
|
32
32
|
</font>
|
33
33
|
</property>
|
34
|
+
<property name="frameShape">
|
35
|
+
<enum>QFrame::NoFrame</enum>
|
36
|
+
</property>
|
37
|
+
<property name="frameShadow">
|
38
|
+
<enum>QFrame::Plain</enum>
|
39
|
+
</property>
|
34
40
|
<property name="digitCount">
|
35
41
|
<number>11</number>
|
36
42
|
</property>
|
not1mm/lib/about.py
CHANGED
not1mm/lib/edit_contact.py
CHANGED
not1mm/lib/edit_macro.py
CHANGED
not1mm/lib/edit_opon.py
CHANGED
not1mm/lib/edit_station.py
CHANGED
not1mm/lib/multicast.py
CHANGED
@@ -10,7 +10,7 @@ from json import JSONDecodeError, dumps, loads
|
|
10
10
|
|
11
11
|
from dicttoxml import dicttoxml
|
12
12
|
|
13
|
-
from
|
13
|
+
from PyQt6 import QtNetwork
|
14
14
|
|
15
15
|
logger = logging.getLogger("multicast")
|
16
16
|
|
@@ -27,12 +27,14 @@ class Multicast:
|
|
27
27
|
self.interface_ip = interface_ip
|
28
28
|
self.server_udp = QtNetwork.QUdpSocket()
|
29
29
|
b_result = self.server_udp.bind(
|
30
|
-
QtNetwork.QHostAddress.AnyIPv4,
|
30
|
+
QtNetwork.QHostAddress.SpecialAddress.AnyIPv4,
|
31
31
|
int(self.multicast_port),
|
32
|
-
QtNetwork.
|
32
|
+
QtNetwork.QAbstractSocket.BindFlag.ReuseAddressHint,
|
33
33
|
)
|
34
34
|
logger.warn(f"multicast bind {b_result}")
|
35
|
-
join_result = self.server_udp.joinMulticastGroup(
|
35
|
+
join_result = self.server_udp.joinMulticastGroup(
|
36
|
+
QtNetwork.QHostAddress(self.multicast_group)
|
37
|
+
)
|
36
38
|
logger.warn(f"joinMulticastGroup result {join_result}")
|
37
39
|
|
38
40
|
def has_pending_datagrams(self) -> bool:
|
@@ -94,4 +96,4 @@ class Multicast:
|
|
94
96
|
return packet
|
95
97
|
|
96
98
|
def close(self):
|
97
|
-
self.server_udp.close()
|
99
|
+
self.server_udp.close()
|
not1mm/lib/new_contest.py
CHANGED
not1mm/lib/select_contest.py
CHANGED
not1mm/lib/settings.py
CHANGED
not1mm/lib/version.py
CHANGED
not1mm/logwindow.py
CHANGED
@@ -14,9 +14,9 @@ import queue
|
|
14
14
|
from json import loads
|
15
15
|
|
16
16
|
import math
|
17
|
-
from
|
18
|
-
from
|
19
|
-
from
|
17
|
+
from PyQt6 import QtCore, QtGui, QtWidgets, uic
|
18
|
+
from PyQt6.QtCore import Qt, QItemSelectionModel
|
19
|
+
from PyQt6.QtWidgets import QDockWidget
|
20
20
|
|
21
21
|
import not1mm.fsutils as fsutils
|
22
22
|
from not1mm.lib.database import DataBase
|
@@ -112,7 +112,9 @@ class LogWindow(QDockWidget):
|
|
112
112
|
self.checkmark = QtGui.QPixmap(str(fsutils.APP_DATA_PATH / "check.png"))
|
113
113
|
self.checkicon = QtGui.QIcon()
|
114
114
|
self.checkicon.addPixmap(self.checkmark)
|
115
|
-
self.generalLog.setContextMenuPolicy(
|
115
|
+
self.generalLog.setContextMenuPolicy(
|
116
|
+
QtCore.Qt.ContextMenuPolicy.CustomContextMenu
|
117
|
+
)
|
116
118
|
self.generalLog.customContextMenuRequested.connect(self.edit_contact_selected)
|
117
119
|
for column_number, column_name in self.columns.items():
|
118
120
|
self.generalLog.setHorizontalHeaderItem(
|
@@ -125,7 +127,9 @@ class LogWindow(QDockWidget):
|
|
125
127
|
self.generalLog.cellDoubleClicked.connect(self.double_clicked)
|
126
128
|
self.generalLog.cellChanged.connect(self.cell_changed)
|
127
129
|
|
128
|
-
self.focusedLog.setContextMenuPolicy(
|
130
|
+
self.focusedLog.setContextMenuPolicy(
|
131
|
+
QtCore.Qt.ContextMenuPolicy.CustomContextMenu
|
132
|
+
)
|
129
133
|
self.focusedLog.customContextMenuRequested.connect(
|
130
134
|
self.edit_focused_contact_selected
|
131
135
|
)
|
@@ -170,25 +174,47 @@ class LogWindow(QDockWidget):
|
|
170
174
|
dark_palette = QtGui.QPalette()
|
171
175
|
dark_color = QtGui.QColor(56, 56, 56)
|
172
176
|
disabled_color = QtGui.QColor(127, 127, 127)
|
173
|
-
dark_palette.setColor(QtGui.QPalette.Window, dark_color)
|
174
|
-
dark_palette.setColor(
|
175
|
-
|
176
|
-
|
177
|
-
dark_palette.setColor(
|
177
|
+
dark_palette.setColor(QtGui.QPalette.ColorRole.Window, dark_color)
|
178
|
+
dark_palette.setColor(
|
179
|
+
QtGui.QPalette.ColorRole.WindowText, QtGui.QColorConstants.White
|
180
|
+
)
|
181
|
+
dark_palette.setColor(
|
182
|
+
QtGui.QPalette.ColorRole.Base, QtGui.QColor(45, 45, 45)
|
183
|
+
)
|
184
|
+
dark_palette.setColor(QtGui.QPalette.ColorRole.AlternateBase, dark_color)
|
185
|
+
dark_palette.setColor(
|
186
|
+
QtGui.QPalette.ColorRole.Text, QtGui.QColorConstants.White
|
187
|
+
)
|
188
|
+
dark_palette.setColor(
|
189
|
+
QtGui.QPalette.ColorGroup.Disabled,
|
190
|
+
QtGui.QPalette.ColorRole.Text,
|
191
|
+
disabled_color,
|
192
|
+
)
|
193
|
+
dark_palette.setColor(QtGui.QPalette.ColorRole.Button, dark_color)
|
178
194
|
dark_palette.setColor(
|
179
|
-
QtGui.QPalette.
|
195
|
+
QtGui.QPalette.ColorRole.ButtonText, QtGui.QColorConstants.White
|
180
196
|
)
|
181
|
-
dark_palette.setColor(QtGui.QPalette.Button, dark_color)
|
182
|
-
dark_palette.setColor(QtGui.QPalette.ButtonText, Qt.white)
|
183
197
|
dark_palette.setColor(
|
184
|
-
QtGui.QPalette.Disabled,
|
198
|
+
QtGui.QPalette.ColorGroup.Disabled,
|
199
|
+
QtGui.QPalette.ColorRole.ButtonText,
|
200
|
+
disabled_color,
|
185
201
|
)
|
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
202
|
dark_palette.setColor(
|
191
|
-
QtGui.QPalette.
|
203
|
+
QtGui.QPalette.ColorRole.BrightText, QtGui.QColorConstants.Red
|
204
|
+
)
|
205
|
+
dark_palette.setColor(
|
206
|
+
QtGui.QPalette.ColorRole.Link, QtGui.QColor(42, 130, 218)
|
207
|
+
)
|
208
|
+
dark_palette.setColor(
|
209
|
+
QtGui.QPalette.ColorRole.Highlight, QtGui.QColor(42, 130, 218)
|
210
|
+
)
|
211
|
+
dark_palette.setColor(
|
212
|
+
QtGui.QPalette.ColorRole.HighlightedText, QtGui.QColorConstants.Black
|
213
|
+
)
|
214
|
+
dark_palette.setColor(
|
215
|
+
QtGui.QPalette.ColorGroup.Disabled,
|
216
|
+
QtGui.QPalette.ColorRole.HighlightedText,
|
217
|
+
disabled_color,
|
192
218
|
)
|
193
219
|
|
194
220
|
self.setPalette(dark_palette)
|
@@ -761,7 +787,9 @@ class LogWindow(QDockWidget):
|
|
761
787
|
self.generalLog.setItem(
|
762
788
|
number_of_rows, self.get_column("YYYY-MM-DD HH:MM:SS"), first_item
|
763
789
|
)
|
764
|
-
self.generalLog.setCurrentItem(
|
790
|
+
self.generalLog.setCurrentItem(
|
791
|
+
first_item, QItemSelectionModel.SelectionFlag.NoUpdate
|
792
|
+
)
|
765
793
|
self.generalLog.item(
|
766
794
|
number_of_rows, self.get_column("YYYY-MM-DD HH:MM:SS")
|
767
795
|
).setTextAlignment(0x0004 | 0x0080)
|
@@ -946,7 +974,9 @@ class LogWindow(QDockWidget):
|
|
946
974
|
self.focusedLog.setItem(
|
947
975
|
number_of_rows, self.get_column("YYYY-MM-DD HH:MM:SS"), first_item
|
948
976
|
)
|
949
|
-
self.focusedLog.setCurrentItem(
|
977
|
+
self.focusedLog.setCurrentItem(
|
978
|
+
first_item, QItemSelectionModel.SelectionFlag.NoUpdate
|
979
|
+
)
|
950
980
|
try:
|
951
981
|
self.focusedLog.item(
|
952
982
|
number_of_rows, self.get_column("YYYY-MM-DD HH:MM:SS")
|
not1mm/plugins/10_10_fall_cw.py
CHANGED
not1mm/plugins/arrl_10m.py
CHANGED
not1mm/plugins/arrl_dx_cw.py
CHANGED
not1mm/plugins/arrl_dx_ssb.py
CHANGED
not1mm/plugins/arrl_field_day.py
CHANGED
not1mm/plugins/arrl_rtty_ru.py
CHANGED
not1mm/plugins/arrl_ss_cw.py
CHANGED
@@ -7,7 +7,7 @@ import logging
|
|
7
7
|
|
8
8
|
from pathlib import Path
|
9
9
|
|
10
|
-
from
|
10
|
+
from PyQt6 import QtWidgets
|
11
11
|
|
12
12
|
from not1mm.lib.plugin_common import gen_adif
|
13
13
|
from not1mm.lib.version import __version__
|
@@ -138,8 +138,8 @@ def points(self):
|
|
138
138
|
def show_mults(self):
|
139
139
|
"""Return display string for mults"""
|
140
140
|
sql = (
|
141
|
-
"select count(DISTINCT(Sect)) as mults from dxlog "
|
142
|
-
f"where ContestNR = {self.database.current_contest};"
|
141
|
+
"select count(DISTINCT(Sect)) as mults from dxlog "
|
142
|
+
f"where ContestNR = {self.database.current_contest};"
|
143
143
|
)
|
144
144
|
result = self.database.exec_sql(sql)
|
145
145
|
return int(result.get("mults", 0))
|
not1mm/plugins/arrl_ss_phone.py
CHANGED
@@ -7,7 +7,7 @@ import logging
|
|
7
7
|
|
8
8
|
from pathlib import Path
|
9
9
|
|
10
|
-
from
|
10
|
+
from PyQt6 import QtWidgets
|
11
11
|
|
12
12
|
from not1mm.lib.plugin_common import gen_adif
|
13
13
|
from not1mm.lib.version import __version__
|
@@ -138,8 +138,8 @@ def points(self):
|
|
138
138
|
def show_mults(self):
|
139
139
|
"""Return display string for mults"""
|
140
140
|
sql = (
|
141
|
-
"select count(DISTINCT(Sect)) as mults from dxlog "
|
142
|
-
f"where ContestNR = {self.database.current_contest};"
|
141
|
+
"select count(DISTINCT(Sect)) as mults from dxlog "
|
142
|
+
f"where ContestNR = {self.database.current_contest};"
|
143
143
|
)
|
144
144
|
result = self.database.exec_sql(sql)
|
145
145
|
return int(result.get("mults", 0))
|
not1mm/plugins/arrl_vhf_jan.py
CHANGED
not1mm/plugins/arrl_vhf_jun.py
CHANGED
not1mm/plugins/arrl_vhf_sep.py
CHANGED
not1mm/plugins/canada_day.py
CHANGED
not1mm/plugins/cq_160_cw.py
CHANGED
not1mm/plugins/cq_160_ssb.py
CHANGED
not1mm/plugins/cq_wpx_cw.py
CHANGED
not1mm/plugins/cq_wpx_ssb.py
CHANGED
not1mm/plugins/cq_ww_cw.py
CHANGED
not1mm/plugins/cq_ww_ssb.py
CHANGED
not1mm/plugins/cwt.py
CHANGED
not1mm/plugins/iaru_hf.py
CHANGED
not1mm/plugins/jidx_cw.py
CHANGED
not1mm/plugins/jidx_ph.py
CHANGED
not1mm/plugins/naqp_cw.py
CHANGED
not1mm/plugins/naqp_ssb.py
CHANGED
@@ -32,7 +32,7 @@ import datetime
|
|
32
32
|
import logging
|
33
33
|
|
34
34
|
from pathlib import Path
|
35
|
-
from
|
35
|
+
from PyQt6 import QtWidgets
|
36
36
|
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
|