not1mm 25.3.31__py3-none-any.whl → 25.4.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.
- not1mm/__main__.py +1 -0
- not1mm/checkwindow.py +2 -46
- not1mm/data/ratewindow.ui +340 -1155
- 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.dist-info → not1mm-25.4.1.dist-info}/METADATA +2 -18
- {not1mm-25.3.31.dist-info → not1mm-25.4.1.dist-info}/RECORD +14 -14
- {not1mm-25.3.31.dist-info → not1mm-25.4.1.dist-info}/WHEEL +0 -0
- {not1mm-25.3.31.dist-info → not1mm-25.4.1.dist-info}/entry_points.txt +0 -0
- {not1mm-25.3.31.dist-info → not1mm-25.4.1.dist-info}/licenses/LICENSE +0 -0
- {not1mm-25.3.31.dist-info → not1mm-25.4.1.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
@@ -1947,6 +1947,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
1947
1947
|
if self.actionStatistics.isChecked():
|
1948
1948
|
self.statistics_window.show()
|
1949
1949
|
self.statistics_window.setActive(True)
|
1950
|
+
self.statistics_window.get_run_and_total_qs()
|
1950
1951
|
else:
|
1951
1952
|
self.statistics_window.hide()
|
1952
1953
|
self.statistics_window.setActive(False)
|
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
|
"""
|