not1mm 25.3.31.1__py3-none-any.whl → 25.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 +10 -33
- not1mm/checkwindow.py +2 -46
- not1mm/data/MASTER.SCP +4353 -4553
- not1mm/data/bandmap.ui +29 -11
- not1mm/data/cty.json +1 -1
- not1mm/data/main.ui +39 -30
- not1mm/data/ratewindow.ui +13 -396
- not1mm/lib/version.py +1 -1
- not1mm/logwindow.py +0 -49
- not1mm/ratewindow.py +0 -77
- not1mm/statistics.py +0 -50
- not1mm/vfo.py +0 -48
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/METADATA +13 -23
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/RECORD +18 -18
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/WHEEL +0 -0
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/entry_points.txt +0 -0
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/licenses/LICENSE +0 -0
- {not1mm-25.3.31.1.dist-info → not1mm-25.4.2.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
@@ -240,8 +240,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
240
240
|
self.cw_entry.returnPressed.connect(self.toggle_cw_entry)
|
241
241
|
|
242
242
|
self.actionCW_Macros.triggered.connect(self.cw_macros_state_changed)
|
243
|
-
# self.actionDark_Mode_2.hide()
|
244
|
-
# self.actionDark_Mode_2.triggered.connect(self.dark_mode_state_changed)
|
245
243
|
self.actionCommand_Buttons_2.triggered.connect(
|
246
244
|
self.command_buttons_state_change
|
247
245
|
)
|
@@ -1025,18 +1023,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
1025
1023
|
cmd = {}
|
1026
1024
|
cmd["cmd"] = "DARKMODE"
|
1027
1025
|
cmd["state"] = setdarkmode
|
1028
|
-
# if self.log_window:
|
1029
|
-
# self.log_window.msg_from_main(cmd)
|
1030
1026
|
if self.bandmap_window:
|
1031
1027
|
self.bandmap_window.msg_from_main(cmd)
|
1032
|
-
|
1033
|
-
# self.check_window.msg_from_main(cmd)
|
1034
|
-
# if self.vfo_window:
|
1035
|
-
# self.vfo_window.msg_from_main(cmd)
|
1036
|
-
# if self.rate_window:
|
1037
|
-
# self.rate_window.msg_from_main(cmd)
|
1038
|
-
# if self.statistics_window:
|
1039
|
-
# self.statistics_window.msg_from_main(cmd)
|
1028
|
+
|
1040
1029
|
|
1041
1030
|
if setdarkmode:
|
1042
1031
|
darkPalette = QPalette()
|
@@ -1947,6 +1936,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
1947
1936
|
if self.actionStatistics.isChecked():
|
1948
1937
|
self.statistics_window.show()
|
1949
1938
|
self.statistics_window.setActive(True)
|
1939
|
+
self.statistics_window.get_run_and_total_qs()
|
1950
1940
|
else:
|
1951
1941
|
self.statistics_window.hide()
|
1952
1942
|
self.statistics_window.setActive(False)
|
@@ -3037,22 +3027,22 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3037
3027
|
except (IOError, TypeError, ValueError) as exception:
|
3038
3028
|
logger.critical("Error: %s", exception)
|
3039
3029
|
|
3040
|
-
if self.pref.get("run_state"):
|
3030
|
+
if self.pref.get("run_state", False) is True:
|
3041
3031
|
self.radioButton_run.setChecked(True)
|
3042
3032
|
else:
|
3043
3033
|
self.radioButton_sp.setChecked(True)
|
3044
3034
|
|
3045
|
-
if self.pref.get("command_buttons"):
|
3035
|
+
if self.pref.get("command_buttons", False) is True:
|
3046
3036
|
self.actionCommand_Buttons.setChecked(True)
|
3047
3037
|
else:
|
3048
3038
|
self.actionCommand_Buttons.setChecked(False)
|
3049
3039
|
|
3050
|
-
if self.pref.get("cw_macros"):
|
3040
|
+
if self.pref.get("cw_macros", False) is True:
|
3051
3041
|
self.actionCW_Macros.setChecked(True)
|
3052
3042
|
else:
|
3053
3043
|
self.actionCW_Macros.setChecked(False)
|
3054
3044
|
|
3055
|
-
if self.pref.get("bands_modes"):
|
3045
|
+
if self.pref.get("bands_modes", False) is True:
|
3056
3046
|
self.actionMode_and_Bands.setChecked(True)
|
3057
3047
|
else:
|
3058
3048
|
self.actionMode_and_Bands.setChecked(False)
|
@@ -3062,13 +3052,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3062
3052
|
if self.lookup_service:
|
3063
3053
|
self.lookup_service.msg_from_main(cmd)
|
3064
3054
|
|
3065
|
-
# if self.pref.get("darkmode"):
|
3066
|
-
# self.actionDark_Mode_2.setChecked(True)
|
3067
|
-
# self.setDarkMode(True)
|
3068
|
-
# else:
|
3069
|
-
# self.setDarkMode(False)
|
3070
|
-
# self.actionDark_Mode_2.setChecked(False)
|
3071
|
-
|
3072
3055
|
try:
|
3073
3056
|
if self.rtc_thread.isRunning():
|
3074
3057
|
self.rtc_service.time_to_quit = True
|
@@ -3091,7 +3074,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3091
3074
|
except ValueError:
|
3092
3075
|
self.auto_cq_delay = 15000
|
3093
3076
|
|
3094
|
-
if self.pref.get("send_rtc_scores", False):
|
3077
|
+
if self.pref.get("send_rtc_scores", False) is True:
|
3095
3078
|
self.rtc_service = RTCService()
|
3096
3079
|
self.rtc_service.moveToThread(self.rtc_thread)
|
3097
3080
|
self.rtc_thread.started.connect(self.rtc_service.run)
|
@@ -3111,7 +3094,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3111
3094
|
self.rig_control = None
|
3112
3095
|
self.fldigi_util = FlDigi_Comm()
|
3113
3096
|
|
3114
|
-
if self.pref.get("useflrig", False):
|
3097
|
+
if self.pref.get("useflrig", False) is True:
|
3115
3098
|
logger.debug(
|
3116
3099
|
"Using flrig: %s",
|
3117
3100
|
f"{self.pref.get('CAT_ip')} {self.pref.get('CAT_port')}",
|
@@ -3128,7 +3111,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3128
3111
|
self.rig_control.poll_callback.connect(self.poll_radio)
|
3129
3112
|
self.radio_thread.start()
|
3130
3113
|
|
3131
|
-
elif self.pref.get("userigctld", False):
|
3114
|
+
elif self.pref.get("userigctld", False) is True:
|
3132
3115
|
logger.debug(
|
3133
3116
|
"Using rigctld: %s",
|
3134
3117
|
f"{self.pref.get('CAT_ip')} {self.pref.get('CAT_port')}",
|
@@ -3249,12 +3232,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3249
3232
|
|
3250
3233
|
self.update_rtc_xml()
|
3251
3234
|
|
3252
|
-
def dark_mode_state_changed(self) -> None:
|
3253
|
-
"""Called when the Dark Mode menu state is changed."""
|
3254
|
-
# self.pref["darkmode"] = self.actionDark_Mode_2.isChecked()
|
3255
|
-
# self.write_preference()
|
3256
|
-
# # self.setDarkMode(self.actionDark_Mode_2.isChecked())
|
3257
|
-
|
3258
3235
|
def rtc_response(self, response):
|
3259
3236
|
print(f"{response=}")
|
3260
3237
|
|
@@ -3325,7 +3302,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3325
3302
|
|
3326
3303
|
"""
|
3327
3304
|
|
3328
|
-
if self.pref.get("command_buttons"):
|
3305
|
+
if self.pref.get("command_buttons", False) is True:
|
3329
3306
|
self.Command_Buttons.show()
|
3330
3307
|
else:
|
3331
3308
|
self.Command_Buttons.hide()
|
not1mm/checkwindow.py
CHANGED
@@ -17,7 +17,7 @@ import Levenshtein
|
|
17
17
|
|
18
18
|
from PyQt6 import uic
|
19
19
|
from PyQt6.QtWidgets import QLabel, QVBoxLayout, QWidget, QDockWidget
|
20
|
-
from PyQt6.QtGui import QMouseEvent
|
20
|
+
from PyQt6.QtGui import QMouseEvent
|
21
21
|
from PyQt6.QtCore import pyqtSignal
|
22
22
|
|
23
23
|
import not1mm.fsutils as fsutils
|
@@ -62,9 +62,7 @@ class CheckWindow(QDockWidget):
|
|
62
62
|
|
63
63
|
def msg_from_main(self, packet):
|
64
64
|
""""""
|
65
|
-
|
66
|
-
self.setDarkMode(packet.get("state", False))
|
67
|
-
return
|
65
|
+
|
68
66
|
if packet.get("cmd", "") == "UPDATELOG":
|
69
67
|
self.clear_lists()
|
70
68
|
return
|
@@ -97,47 +95,6 @@ class CheckWindow(QDockWidget):
|
|
97
95
|
cmd["call"] = item
|
98
96
|
self.message.emit(cmd)
|
99
97
|
|
100
|
-
def setDarkMode(self, dark: bool) -> None:
|
101
|
-
"""Forces a darkmode palette."""
|
102
|
-
return
|
103
|
-
if dark:
|
104
|
-
darkPalette = QPalette()
|
105
|
-
darkColor = QColor(56, 56, 56)
|
106
|
-
disabledColor = QColor(127, 127, 127)
|
107
|
-
darkPalette.setColor(QPalette.ColorRole.Window, darkColor)
|
108
|
-
darkPalette.setColor(QPalette.ColorRole.WindowText, QColorConstants.White)
|
109
|
-
darkPalette.setColor(QPalette.ColorRole.Base, QColor(45, 45, 45))
|
110
|
-
darkPalette.setColor(QPalette.ColorRole.AlternateBase, darkColor)
|
111
|
-
darkPalette.setColor(QPalette.ColorRole.Text, QColorConstants.White)
|
112
|
-
darkPalette.setColor(QPalette.ColorRole.Button, darkColor)
|
113
|
-
darkPalette.setColor(QPalette.ColorRole.ButtonText, QColorConstants.White)
|
114
|
-
darkPalette.setColor(QPalette.ColorRole.BrightText, QColorConstants.Red)
|
115
|
-
darkPalette.setColor(QPalette.ColorRole.Link, QColor(42, 130, 218))
|
116
|
-
darkPalette.setColor(QPalette.ColorRole.Highlight, QColor(42, 130, 218))
|
117
|
-
darkPalette.setColor(
|
118
|
-
QPalette.ColorRole.HighlightedText, QColorConstants.Black
|
119
|
-
)
|
120
|
-
darkPalette.setColor(
|
121
|
-
QPalette.ColorGroup.Disabled,
|
122
|
-
QPalette.ColorRole.ButtonText,
|
123
|
-
disabledColor,
|
124
|
-
)
|
125
|
-
darkPalette.setColor(
|
126
|
-
QPalette.ColorGroup.Disabled,
|
127
|
-
QPalette.ColorRole.HighlightedText,
|
128
|
-
disabledColor,
|
129
|
-
)
|
130
|
-
darkPalette.setColor(
|
131
|
-
QPalette.ColorGroup.Disabled,
|
132
|
-
QPalette.ColorRole.Text,
|
133
|
-
disabledColor,
|
134
|
-
)
|
135
|
-
|
136
|
-
self.setPalette(darkPalette)
|
137
|
-
else:
|
138
|
-
palette = self.style().standardPalette()
|
139
|
-
self.setPalette(palette)
|
140
|
-
|
141
98
|
def load_pref(self) -> None:
|
142
99
|
"""
|
143
100
|
Load preference file to get current db filename and sets the initial darkmode state.
|
@@ -162,7 +119,6 @@ class CheckWindow(QDockWidget):
|
|
162
119
|
|
163
120
|
except IOError as exception:
|
164
121
|
logger.critical("Error: %s", exception)
|
165
|
-
self.setDarkMode(self.pref.get("darkmode", False))
|
166
122
|
|
167
123
|
def clear_lists(self) -> None:
|
168
124
|
"""
|