not1mm 25.3.2__py3-none-any.whl → 25.3.5__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 CHANGED
@@ -692,8 +692,10 @@ class MainWindow(QtWidgets.QMainWindow):
692
692
  self.actionBandmap.setChecked(self.pref.get("bandmapwindow", False))
693
693
  if self.actionBandmap.isChecked():
694
694
  self.bandmap_window.show()
695
+ self.bandmap_window.setActive(True)
695
696
  else:
696
697
  self.bandmap_window.hide()
698
+ self.bandmap_window.setActive(False)
697
699
 
698
700
  self.actionCheck_Window.setChecked(self.pref.get("checkwindow", False))
699
701
  if self.actionCheck_Window.isChecked():
@@ -1854,8 +1856,10 @@ class MainWindow(QtWidgets.QMainWindow):
1854
1856
  self.write_preference()
1855
1857
  if self.actionBandmap.isChecked():
1856
1858
  self.bandmap_window.show()
1859
+ self.bandmap_window.setActive(True)
1857
1860
  else:
1858
1861
  self.bandmap_window.hide()
1862
+ self.bandmap_window.setActive(False)
1859
1863
 
1860
1864
  def launch_check_window(self) -> None:
1861
1865
  """Launch the check window"""
@@ -3733,6 +3737,8 @@ class MainWindow(QtWidgets.QMainWindow):
3733
3737
  vfo = the_dict.get("vfoa", "")
3734
3738
  mode = the_dict.get("mode", "")
3735
3739
  bw = the_dict.get("bw", "")
3740
+ if bw == "NONE":
3741
+ bw = "0"
3736
3742
  online = the_dict.get("online", False)
3737
3743
 
3738
3744
  if online is False:
@@ -3763,7 +3769,7 @@ class MainWindow(QtWidgets.QMainWindow):
3763
3769
 
3764
3770
  if mode in ("CW", "CW-U", "CW-L", "CWR"):
3765
3771
  self.setmode(mode)
3766
- if mode == "LSB" or mode == "USB":
3772
+ if mode in ("LSB", "USB", "FM", "AM"):
3767
3773
  self.setmode("SSB")
3768
3774
  if mode in (
3769
3775
  "RTTY",
@@ -3774,20 +3780,23 @@ class MainWindow(QtWidgets.QMainWindow):
3774
3780
  "FM-D",
3775
3781
  "DIGI-U",
3776
3782
  "DIGI-L",
3783
+ "DIG",
3777
3784
  "RTTYR",
3778
3785
  "PKTLSB",
3779
3786
  "PKTUSB",
3787
+ "FSK",
3788
+ "PKT",
3780
3789
  ):
3781
3790
  self.setmode("RTTY")
3782
3791
 
3783
- cmd = {}
3784
- cmd["cmd"] = "RADIO_STATE"
3785
- cmd["band"] = band
3786
- cmd["vfoa"] = vfo
3787
- cmd["mode"] = mode
3788
- cmd["bw"] = bw
3789
- if self.bandmap_window:
3790
- self.bandmap_window.msg_from_main(cmd)
3792
+ # cmd = {}
3793
+ # cmd["cmd"] = "RADIO_STATE"
3794
+ # cmd["band"] = band
3795
+ # cmd["vfoa"] = vfo
3796
+ # cmd["mode"] = mode
3797
+ # cmd["bw"] = bw
3798
+ # if self.bandmap_window:
3799
+ # self.bandmap_window.msg_from_main(cmd)
3791
3800
  if info_dirty:
3792
3801
  try:
3793
3802
  logger.debug("VFO: %s MODE: %s BW: %s", vfo, mode, bw)
@@ -3895,10 +3904,14 @@ class MainWindow(QtWidgets.QMainWindow):
3895
3904
  """
3896
3905
 
3897
3906
  macro_file = self.get_macro_filename()
3898
-
3899
3907
  try:
3900
3908
  with open(macro_file, "r", encoding="utf-8") as file_descriptor:
3901
3909
  for line in file_descriptor:
3910
+ line = line.strip()
3911
+ if not line:
3912
+ continue
3913
+ if line.startswith("#"):
3914
+ continue
3902
3915
  mode, fkey, buttonname, cwtext = line.split("|")
3903
3916
  if mode.strip().upper() == "R" and self.pref.get("run_state"):
3904
3917
  self.fkeys[fkey.strip()] = (buttonname.strip(), cwtext.strip())
not1mm/bandmap.py CHANGED
@@ -339,6 +339,7 @@ class BandMapWindow(QDockWidget):
339
339
 
340
340
  def __init__(self):
341
341
  super().__init__()
342
+ self.active = False
342
343
  self._udpwatch = None
343
344
 
344
345
  uic.loadUi(fsutils.APP_DATA_PATH / "bandmap.ui", self)
@@ -373,6 +374,9 @@ class BandMapWindow(QDockWidget):
373
374
  self.request_workedlist()
374
375
  self.request_contest()
375
376
 
377
+ def setActive(self, mode: bool):
378
+ self.active = bool(mode)
379
+
376
380
  def get_settings(self) -> dict:
377
381
  """Get the settings."""
378
382
  if os.path.exists(fsutils.CONFIG_FILE):
@@ -381,6 +385,8 @@ class BandMapWindow(QDockWidget):
381
385
 
382
386
  def msg_from_main(self, packet):
383
387
  """"""
388
+ if self.active is False:
389
+ return
384
390
  if packet.get("cmd", "") == "RADIO_STATE":
385
391
  self.set_band(packet.get("band") + "m", False)
386
392
  try:
@@ -577,6 +583,8 @@ class BandMapWindow(QDockWidget):
577
583
  self.update_timer.setInterval(UPDATE_INTERVAL)
578
584
  except AttributeError:
579
585
  ...
586
+ # if self.active is False:
587
+ # return
580
588
  self.clear_all_callsign_from_scene()
581
589
  self.clear_freq_mark(self.rxMark)
582
590
  self.clear_freq_mark(self.txMark)
@@ -709,6 +717,8 @@ class BandMapWindow(QDockWidget):
709
717
  def update_stations(self):
710
718
  """doc"""
711
719
  self.update_timer.setInterval(UPDATE_INTERVAL)
720
+ if self.active is False:
721
+ return
712
722
  self.clear_all_callsign_from_scene()
713
723
  self.spot_aging()
714
724
  step, _digits = self.determine_step_digits()
@@ -877,7 +887,7 @@ class BandMapWindow(QDockWidget):
877
887
  """Send a command to the cluster."""
878
888
  cmd += "\r\n"
879
889
  tosend = bytes(cmd, encoding="ascii")
880
- logger.debug("%s", f"{tosend}")
890
+ logger.debug("Command sent to the cluster")
881
891
  if self.socket:
882
892
  if self.socket.isOpen():
883
893
  self.socket.write(tosend)
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "25.3.2"
3
+ __version__ = "25.3.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: not1mm
3
- Version: 25.3.2
3
+ Version: 25.3.5
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mbridak/not1mm
@@ -240,12 +240,9 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
240
240
 
241
241
  ## Recent Changes
242
242
 
243
+ - [25-3-5] Added checks for blank/comment lines in the macros
243
244
  - [25-3-2] Added call history support to ARRL DX, just in time for it to be over.
244
245
  - [25-3-1] Add {OTHER1} and {OTHER2} macros.
245
- - [25-2-26] Switch to a Run state if engaging auto_cq.
246
- - [25-2-22] Add Auto CQ.
247
- - [25-2-12] Merged PR from @alduhoo Adding RandomGram event.
248
- - [25-2-6] Trimmed out newer tags from UI files, 'cause stuff be old sometimes.
249
246
 
250
247
  See [CHANGELOG.md](CHANGELOG.md) for prior changes.
251
248
 
@@ -1,6 +1,6 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=tg3pyejQnZILEIPLvjEjMWHsLmNDtOgEMVwk_G-hGgI,148362
3
- not1mm/bandmap.py,sha256=vaOeqv_gW0-K0P3xA9JYcuiFILiKw601tjHQCwuoV-s,31260
2
+ not1mm/__main__.py,sha256=ImYkGDI_vV26zkLHRhpABSaCcVV5mdHzV2I3g0aQXTc,148862
3
+ not1mm/bandmap.py,sha256=mdSK6oj8plEmr6WVYkzPTCfsHWKl9lea3R14cmRsAI4,31531
4
4
  not1mm/checkwindow.py,sha256=VFAcKYTcoWhmIf91chwY6tyao9FQMWPiUkgDDkkWaog,9670
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
6
6
  not1mm/logwindow.py,sha256=TvpzQTNB92hISlUO3iWBqtlPmlebdhOkAArx0DNGcOs,43966
@@ -116,7 +116,7 @@ not1mm/lib/plugin_common.py,sha256=M5reDYM-v5IjAa2yTROvZTeTDkXYHb3U52W9mc9GxwA,1
116
116
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
117
117
  not1mm/lib/settings.py,sha256=mXffn8Xaj5KATPQinNBR0V5DbHWQPsRfh24_axWGYuk,15254
118
118
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
119
- not1mm/lib/version.py,sha256=-mF3zNQ_0SuY4YjPsNBWWP6ynQSBQBM0qzuBG8dN1ks,47
119
+ not1mm/lib/version.py,sha256=gi_0LSINxGfRh30abAqZxn7WgqDMd2zYr9AyHT3YSPc,47
120
120
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
121
121
  not1mm/plugins/10_10_fall_cw.py,sha256=5QUyGMvGBC-HxcY_z9QbfuxSg3f7p6C9K4qhTxgZE7k,14719
122
122
  not1mm/plugins/10_10_spring_cw.py,sha256=XjYFM263WYyG6nVQzPObW4YC7Z9L93rixSOcVsxPvH4,14722
@@ -167,9 +167,9 @@ not1mm/plugins/ref_ssb.py,sha256=Z_XmMpYKcI5dZh4TQqvQDcz-cLpMzpDEKBnb5iHeBLQ,215
167
167
  not1mm/plugins/stew_perry_topband.py,sha256=D1hekmMbx-i4BhaP2uzOK3OzaVVMMdgcN3RmfweNqHo,15341
168
168
  not1mm/plugins/weekly_rtty.py,sha256=rdlIrsxBeuj-RQc5OStVNF7sGCtBK5t6inN5Z7DI4tw,20066
169
169
  not1mm/plugins/winter_field_day.py,sha256=JK4r1vfxs7aADR7ZYbjZniz3f5s3_ipSQDZ0GRNWC7I,15222
170
- not1mm-25.3.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
171
- not1mm-25.3.2.dist-info/METADATA,sha256=clCdCTSM3ZTo9WJQG1-tKUyNtX5w8OoPpzcmJHIA4BQ,36448
172
- not1mm-25.3.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
173
- not1mm-25.3.2.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
174
- not1mm-25.3.2.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
175
- not1mm-25.3.2.dist-info/RECORD,,
170
+ not1mm-25.3.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
171
+ not1mm-25.3.5.dist-info/METADATA,sha256=_V3E4nKSoKm9lxIMjmwt4u7Gx1q4PpOfn4gCg3HjgMs,36289
172
+ not1mm-25.3.5.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
173
+ not1mm-25.3.5.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
174
+ not1mm-25.3.5.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
175
+ not1mm-25.3.5.dist-info/RECORD,,