not1mm 24.3.9__py3-none-any.whl → 24.3.19__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 (43) hide show
  1. not1mm/__main__.py +2 -4
  2. not1mm/data/new_contest.ui +11 -1
  3. not1mm/data/not1mm.html +46 -108
  4. not1mm/lib/database.py +14 -0
  5. not1mm/lib/plugin_common.py +29 -2
  6. not1mm/lib/version.py +1 -1
  7. not1mm/plugins/10_10_fall_cw.py +2 -0
  8. not1mm/plugins/10_10_spring_cw.py +2 -0
  9. not1mm/plugins/10_10_summer_phone.py +2 -0
  10. not1mm/plugins/10_10_winter_phone.py +2 -0
  11. not1mm/plugins/arrl_10m.py +2 -0
  12. not1mm/plugins/arrl_dx_cw.py +2 -0
  13. not1mm/plugins/arrl_dx_ssb.py +2 -0
  14. not1mm/plugins/arrl_field_day.py +2 -0
  15. not1mm/plugins/arrl_ss_cw.py +2 -0
  16. not1mm/plugins/arrl_ss_phone.py +2 -0
  17. not1mm/plugins/arrl_vhf_jan.py +2 -0
  18. not1mm/plugins/arrl_vhf_jun.py +2 -0
  19. not1mm/plugins/arrl_vhf_sep.py +2 -0
  20. not1mm/plugins/canada_day.py +2 -0
  21. not1mm/plugins/cq_160_cw.py +411 -0
  22. not1mm/plugins/cq_160_ssb.py +411 -0
  23. not1mm/plugins/cq_wpx_cw.py +2 -0
  24. not1mm/plugins/cq_wpx_ssb.py +2 -0
  25. not1mm/plugins/cq_ww_cw.py +2 -0
  26. not1mm/plugins/cq_ww_ssb.py +2 -0
  27. not1mm/plugins/cwt.py +2 -0
  28. not1mm/plugins/iaru_hf.py +2 -0
  29. not1mm/plugins/jidx_cw.py +2 -0
  30. not1mm/plugins/jidx_ph.py +2 -0
  31. not1mm/plugins/naqp_cw.py +2 -0
  32. not1mm/plugins/naqp_ssb.py +2 -0
  33. not1mm/plugins/phone_weekly_test.py +2 -0
  34. not1mm/plugins/stew_perry_topband.py +2 -0
  35. not1mm/plugins/winter_field_day.py +2 -0
  36. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/METADATA +7 -1
  37. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/RECORD +43 -40
  38. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/WHEEL +1 -1
  39. testing/detectdark.py +35 -0
  40. testing/test.py +13 -11
  41. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/LICENSE +0 -0
  42. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/entry_points.txt +0 -0
  43. {not1mm-24.3.9.dist-info → not1mm-24.3.19.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=bHtFjxlNyLR3UUg7sRiK9E2XbOObJdPF5OhOUcJ0Zio,108484
2
+ not1mm/__main__.py,sha256=1qsz42uPC2r1XBVhScPYYPnnRphipNVprn0bX7t_CZE,108424
3
3
  not1mm/bandmap.py,sha256=hL76Hyz2omB_jroaUeXJ9XTYuD_qbWZQrqfTMW1Wx3E,29645
4
4
  not1mm/checkwindow.py,sha256=QyxPtGwqOCTQR3kVREhwSkhdbWcGfDyGNHId-b6FpQQ,7449
5
5
  not1mm/logwindow.py,sha256=Rk9GAxOjic8JeqjrCJrCbnLIdoKT9kdE-G32AjAwVX4,44021
@@ -25,8 +25,8 @@ not1mm/data/k6gte.not1mm-32.png,sha256=XdTsCa3xqwTfn26Ga7RwO_Vlbg_77RKkSc8bMxVcC
25
25
  not1mm/data/k6gte.not1mm-64.png,sha256=6ku45Gq1g5ezh04F07osoKRtanb3e4kbx5XdIEh3N90,2925
26
26
  not1mm/data/logwindow.ui,sha256=_-wobHhIjALzCswyXIrqNadnLdc88eay1GNF23a-Qh0,970
27
27
  not1mm/data/main.ui,sha256=zhF00NG9BL6EDr7159GNvvU8vb0oH9FUsdTGli9xY58,53841
28
- not1mm/data/new_contest.ui,sha256=hMB8gRc4kNAqsL4JwEkTpKBKsL24gjD6DPNIhHw-prM,21609
29
- not1mm/data/not1mm.html,sha256=YfPiT9SrSZfsxShbiLTtdCa3rSY6M2haZ2eKV8kmU3c,25793
28
+ not1mm/data/new_contest.ui,sha256=Xubngdbs_V_-o8huXzKOOaQOfj1NSXu9giIcaL4d0qk,21823
29
+ not1mm/data/not1mm.html,sha256=c9-mfjMwDt4f5pySUruz2gREW33CQ2_rCddM2z5CZQo,23273
30
30
  not1mm/data/opon.ui,sha256=mC4OhoVIfR1H9IqHAKXliPMm8VOVmxSEadpsFQ7XnS4,2247
31
31
  not1mm/data/pickcontest.ui,sha256=_9JFiJw4l-bRRgNDtVg1DpxreylYd_UqEq0wfcr9gJc,1600
32
32
  not1mm/data/radio_green.png,sha256=PXlvRI2x0C8yLVkxRwrZe6tex8k9GtM-1Cj2Vy6KP7o,1234
@@ -88,7 +88,7 @@ not1mm/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  not1mm/lib/about.py,sha256=O9i8ypv2W9KZkPAp2bcRI0J5RgPE5R1vMfU8ZGlok_E,379
89
89
  not1mm/lib/cat_interface.py,sha256=fLiIzVk2azQPYNRPa1bLPkfMY6UogNmOu-aFHz26W5w,15122
90
90
  not1mm/lib/cwinterface.py,sha256=fZ5BXVyF7by0yGTJVznUTjRCxRt3lJaUIsNC-_mCGP4,3123
91
- not1mm/lib/database.py,sha256=aWnhjwWhC-vvYeJMvxTOqvgC2qb8UOThd8zI8sqw8Xk,41920
91
+ not1mm/lib/database.py,sha256=YXtWgHE9vvEyTtc6S_Q6zWjVXm19rT_s9ubSmr0Qlqs,42486
92
92
  not1mm/lib/edit_contact.py,sha256=YwuX-BuIa7AuPtLRENs4jTzxOrtk6MCxZj3BR_bDPW8,357
93
93
  not1mm/lib/edit_macro.py,sha256=lyToZb1nmcONNFh6W35NzYHLU48gbAs2_OsnuRQGHck,559
94
94
  not1mm/lib/edit_opon.py,sha256=GqAOJMiC265_4YRVbkT1PflBuCa4HiCNfRhq8-J6ZVY,363
@@ -98,53 +98,56 @@ not1mm/lib/lookup.py,sha256=nuRyeUCcGOj0reBXcmPkGXCYGyKN5vsBD5xF8iE0fF8,13777
98
98
  not1mm/lib/multicast.py,sha256=VbKyppKVu6m2RN9prcd6jknEivr5hcDH0MAsnyAC9Gw,3000
99
99
  not1mm/lib/n1mm.py,sha256=O3U2dhOX-_5nBomyuiyfx-_GQk6rj067lwrcC9GtDpQ,5713
100
100
  not1mm/lib/new_contest.py,sha256=mHKNCS3iKOKN-bT9d8ZK3JemThOZFQ0ikfUSS0-ZTpY,354
101
- not1mm/lib/plugin_common.py,sha256=Oggv0Hnvh0CCAiNLygDdTSYV1rmzOptg8nqStFRUi_U,7497
101
+ not1mm/lib/plugin_common.py,sha256=AAKBPCXzTWZJb-h08uPNnHVG7bSCg7kwukc211gFivY,8605
102
102
  not1mm/lib/select_contest.py,sha256=XQdRUkPAIHIMVsilm82M54b_v9yWpYrZ1nfInJrtZoo,363
103
103
  not1mm/lib/settings.py,sha256=t_JLJPnDBtMGAvJMAF1AL1eVB7MyucqlksVTU47yxvk,8933
104
104
  not1mm/lib/super_check_partial.py,sha256=YFc3_o2OdKMwQMlUAcKyZaLbvbSfMcSjWAAPUjd84uk,2258
105
- not1mm/lib/version.py,sha256=pYxMcpOuqQniIJkQ2yMvz10CXnv0feeayZABWZDEyT8,47
105
+ not1mm/lib/version.py,sha256=NverN5hpmAk3Ah6yKS1qYkPZvhf-HhWdM2eEqEOMf24,48
106
106
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
107
- not1mm/plugins/10_10_fall_cw.py,sha256=8cN7QmGKWzz_jgu48DzWwy5VbbY3-ntT2Q1DSVbgkwE,10692
108
- not1mm/plugins/10_10_spring_cw.py,sha256=cgCLyGw-w8SjKooDxY6PjJFUjVKgI48bzrOsyasOapY,10698
109
- not1mm/plugins/10_10_summer_phone.py,sha256=WR7bMPY11vLleT8VuyMBElyjDq_KlfRL5g4tHA0JldY,10706
110
- not1mm/plugins/10_10_winter_phone.py,sha256=ZXoUCXC-RhgirI-VHA7-s76LgS5mHcOaT29Jg_9zD_s,10709
107
+ not1mm/plugins/10_10_fall_cw.py,sha256=HUZ92o-zem0tUBvRDpQP904Y5eQd1FlGp3Ky0xOhVpA,10836
108
+ not1mm/plugins/10_10_spring_cw.py,sha256=lrIHJns5tCVfnRVaA0ygw9SdbJkRFuGhwA6LacOHBlk,10842
109
+ not1mm/plugins/10_10_summer_phone.py,sha256=JLlH1Ry6mvA69-DVYyBc_xKWUchPgj7nCs4TF4555NE,10850
110
+ not1mm/plugins/10_10_winter_phone.py,sha256=b1aXJ-umbSMhtGXppPtGhgE00WoXzDWgkpku0btvKG8,10853
111
111
  not1mm/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
- not1mm/plugins/arrl_10m.py,sha256=Cp3COORlROvfLvRi5R5fA1yCmbDCrl2KOTu7t_Yt6u8,13501
113
- not1mm/plugins/arrl_dx_cw.py,sha256=WcbNo0PJ6xbC6oYZLN-YCC00AwbXF6JRH8hN2hfGWrQ,13546
114
- not1mm/plugins/arrl_dx_ssb.py,sha256=-zTxktlLOqNoVxuW0qmhl2C8W9OZPG61RiQJdMufcsk,13549
115
- not1mm/plugins/arrl_field_day.py,sha256=aiQjnWsorjMk1kFHQZMFI6pBc1Z6q2-nx0hhSXN45pI,9884
112
+ not1mm/plugins/arrl_10m.py,sha256=iwUyELv5J2x4jq8j6vWmUh5K_SE9qZUIF9VnTr5mi4M,13645
113
+ not1mm/plugins/arrl_dx_cw.py,sha256=Bhm82iykXpzUqFCq854d55Op_1KW5Gla3RZfU6dVvLk,13690
114
+ not1mm/plugins/arrl_dx_ssb.py,sha256=dZDRZfRKJgMFtHNsSZo44IDLU6K8GYQI-YeRboOGHjg,13693
115
+ not1mm/plugins/arrl_field_day.py,sha256=4tPFQZQirMD4YXAH1kYqnqaSsQ7jkoKROaioCZPADiE,10028
116
116
  not1mm/plugins/arrl_rtty_ru.py,sha256=9v9wApmUZHAKX4t_O6hVqBnT7v5bqAGV8SjgDhfOuMs,7974
117
- not1mm/plugins/arrl_ss_cw.py,sha256=kmQ-DZnNCyivVmnRtW5H1z3b6tFFXXUljwfao5uLVnI,13001
118
- not1mm/plugins/arrl_ss_phone.py,sha256=T2EPgADFQ7Fjk00PeOvzc46ncN4-Vw4C1ZJsQC615jQ,13007
119
- not1mm/plugins/arrl_vhf_jan.py,sha256=oLnWh7Ue3y_TwRHMML4uxqJQP0MrRuSPJavRKdTwQXM,12296
120
- not1mm/plugins/arrl_vhf_jun.py,sha256=mVRCYXHdMFS64xzptJhj9eRxhbDWrA1hAWqhSWuGjJ4,11315
121
- not1mm/plugins/arrl_vhf_sep.py,sha256=s_NIUWiOgzzrLYU0QVpotvRYv1BjMawUXdCT1xOQjKc,11315
122
- not1mm/plugins/canada_day.py,sha256=e_cNbn0D3lVdq40gMxmdvU4uAIijqqx6o90xvtgZQCM,11727
123
- not1mm/plugins/cq_wpx_cw.py,sha256=UHXw9pkprJ_AxB9aKLRjAfucLA5ZMihbs6vERiLzt0M,12236
124
- not1mm/plugins/cq_wpx_ssb.py,sha256=bWrqVUK-jX3_47AUt5n9JglPmHTAh6nus2W_ngzXjSA,12324
125
- not1mm/plugins/cq_ww_cw.py,sha256=O0kcMd9izzoOpWOI4Pi5AMXRXJgS8b7valY5IYVLQY4,10941
126
- not1mm/plugins/cq_ww_ssb.py,sha256=Wq9o0g97KgmwVwDKWGt75oRsJ_ri6linpeR-ERz-b0E,10946
127
- not1mm/plugins/cwt.py,sha256=R6BqQr5-Jxb4r0c6INbPlMTUMVC_PcQh0QMEnXSVv-M,11834
117
+ not1mm/plugins/arrl_ss_cw.py,sha256=czRrTHa6599gafekqRqSFObupt7HE18Zy4d4icj-ngw,13145
118
+ not1mm/plugins/arrl_ss_phone.py,sha256=raYIuUp0FIMv0ihC8x3EuQ8TdMGbl72W5zaZyinNF10,13151
119
+ not1mm/plugins/arrl_vhf_jan.py,sha256=rrTYN3q4BVSO-8br-85ap15w6sTvcX6SvT0oSgPfnCU,12440
120
+ not1mm/plugins/arrl_vhf_jun.py,sha256=z2g4usOtCSp0wNDEqX39QdEBlDVvJcmdMBQBNZy0K-A,11459
121
+ not1mm/plugins/arrl_vhf_sep.py,sha256=CnWOU1rFZws--4CwMa0Qgo2J6UvPfqCL5eKz1-BzFqA,11459
122
+ not1mm/plugins/canada_day.py,sha256=xuy0bJj0o0h0oNsbtC0rS-AGCx4Od0f8PtlTPXigiE8,11871
123
+ not1mm/plugins/cq_160_cw.py,sha256=I3t1NWeaICbUeR0zIB4VLnQp5cMZeYbu6NgkBXCbu-w,14020
124
+ not1mm/plugins/cq_160_ssb.py,sha256=5pZPTHZoduBr6g4L08WTCe3vCW-xkS0Gvys58R24wiE,14063
125
+ not1mm/plugins/cq_wpx_cw.py,sha256=bm4WyYdItE0gQjA0G6itX-uOzZmH0szniZ0f_SiTdOI,12380
126
+ not1mm/plugins/cq_wpx_ssb.py,sha256=gtsb5jcfr6bDzmYPlA7UNCtqbH22EGy1VI0ozX0DBgI,12468
127
+ not1mm/plugins/cq_ww_cw.py,sha256=Py2NfZeEWWtB6PIXPYFlkd7BrTv1fpq86x_nUTf0RbQ,11085
128
+ not1mm/plugins/cq_ww_ssb.py,sha256=W8cb_opy1dnXQbUgMPGx1sSfBJpAcGk-tTbgZMd_330,11090
129
+ not1mm/plugins/cwt.py,sha256=8XBUOMg7Jfo_I2I6mc5QcX7q7zNtcBXMCuT7gMHrINU,11978
128
130
  not1mm/plugins/general_logging.py,sha256=naz16xAfjdWRm8B-dB_UBJ0NVjBuvbu98hDR1f7UgFk,3371
129
- not1mm/plugins/iaru_hf.py,sha256=huaTl3XiCCdoSZaXVPz4UEr9fctHXlHzKmAmzTblPJs,11291
130
- not1mm/plugins/jidx_cw.py,sha256=xpdJ0Fb-VZH_CFuQxGnHA7WGRzh3WCuH7mXqX8PS8GM,10907
131
- not1mm/plugins/jidx_ph.py,sha256=zQOUnj50D_6Mr1l2GqCHOJyRLih_Q7dcTY5ICBCDpe4,10909
132
- not1mm/plugins/naqp_cw.py,sha256=mmApyN16MOaWPixQpauPa5kgMLatd1eVDn3KB_8oW2Q,11330
133
- not1mm/plugins/naqp_ssb.py,sha256=3q8Qz73IknsE-ccN34WzXCqGuAs6JdV6q8uCSEtGnSE,11335
134
- not1mm/plugins/phone_weekly_test.py,sha256=nELl0oFEdi9pJBGLsXoj1zirvUu_EQkhdDM4JlVjGVQ,12136
135
- not1mm/plugins/stew_perry_topband.py,sha256=TWbjdsIuTF8yTUb7NGPVWj_jHZqMc8ZixDLxdClNyJE,10404
136
- not1mm/plugins/winter_field_day.py,sha256=CvaA2H9y0ud6PyHXuGzRkCAeK4xUFmDvFHXv7ViP3Xc,10070
131
+ not1mm/plugins/iaru_hf.py,sha256=ED_gtrl1-HztqrOG5_A3nhHlFd0Nf0U2YH7C95gYDZU,11435
132
+ not1mm/plugins/jidx_cw.py,sha256=eu0LGX2iMbh70UCxRgr56HlVyW0DW7tLJV5zV0hJSgY,11051
133
+ not1mm/plugins/jidx_ph.py,sha256=2A0ruAMLOn0Jvp7T7dzN8znaoGAiaNpWpU3PsQXlCE8,11053
134
+ not1mm/plugins/naqp_cw.py,sha256=MwpIddEW7DtLUMHM7VqvZU4mhbzwf0mx_c-SyUBgMJA,11474
135
+ not1mm/plugins/naqp_ssb.py,sha256=x5nVoeyRJWcmH6fcYclFGQywpIAEnBMVulfdiGMpdCo,11479
136
+ not1mm/plugins/phone_weekly_test.py,sha256=eP4ChoQ7WqElOZIaiBI9XI0bnIHQb6qAHLeR1LzAplA,12280
137
+ not1mm/plugins/stew_perry_topband.py,sha256=OPkvULiJ3MSxiVXwkZZFs7Qj0NQ9DaFq5g_RqSN3Vrg,10548
138
+ not1mm/plugins/winter_field_day.py,sha256=ReA5HufYryFz9nd4Aa3V-FGKBXwdUu-rDZsLlaKt8NY,10214
137
139
  not1mm/testing/fakeflrig.py,sha256=_vJHGjARpSNxSZngkHNO_kkHoVnqtf--T6gwTAYnnZQ,2083
138
140
  not1mm/testing/flrigclient.py,sha256=24r_0HqpoTjyJ6Bqg_HIC8Nn9wjtnwwWQ26I7UprwgA,1658
139
141
  not1mm/testing/multicast_listener.py,sha256=2CkiyZ4EQxBX68_1QzGIX9g_UB9-CQq63OH-pUY3FiU,1051
140
142
  not1mm/testing/n1mm_listener.py,sha256=UD-qyKEnppQua330WEFKMvMJaNjnYKi7dDuX_RGB5lQ,1099
141
143
  not1mm/testing/simulant.py,sha256=kBqCZTe3ADEuHUsh9ygY9usn-jKe4EKRh7-L6tY6iYE,10948
142
144
  not1mm/testing/test.py,sha256=97xdCpTVIWx1CUMU7JBrn9PMU7DqWnz6zO96XificC4,99
143
- testing/test.py,sha256=q7socQaMu46q-I-1fYgmQhnygrrC5NjAUM5yuySo4fA,249
145
+ testing/detectdark.py,sha256=d2oUDqLkDLMCTFjW3lSJgaf-PgLDrk71gw2Cess5itY,895
146
+ testing/test.py,sha256=VkkKwKTJ4lqB7ozS9OEqy3NH67xU-_Dq0xkixKUdjrY,312
144
147
  usb_vfo_knob/code.py,sha256=h59iPPlcYbkXmRcYPQHDBP0yfLEl7fY3VkiIszdQeyI,1057
145
- not1mm-24.3.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
146
- not1mm-24.3.9.dist-info/METADATA,sha256=lUNHw7GoGlxwpZV9owOiq8oYK3GagfwtK6nvPKfAkS8,25764
147
- not1mm-24.3.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
148
- not1mm-24.3.9.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
149
- not1mm-24.3.9.dist-info/top_level.txt,sha256=PBUZJeDgW5ta7ghk__UYh_ygOFIhe9ymJDaxEuVumFU,28
150
- not1mm-24.3.9.dist-info/RECORD,,
148
+ not1mm-24.3.19.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
149
+ not1mm-24.3.19.dist-info/METADATA,sha256=4U1PwcCWaTk9MpFeh3FJWi43udD7kUuQj80LhoF07D0,26059
150
+ not1mm-24.3.19.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
151
+ not1mm-24.3.19.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
152
+ not1mm-24.3.19.dist-info/top_level.txt,sha256=PBUZJeDgW5ta7ghk__UYh_ygOFIhe9ymJDaxEuVumFU,28
153
+ not1mm-24.3.19.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
testing/detectdark.py ADDED
@@ -0,0 +1,35 @@
1
+ import darkdetect
2
+ import sys
3
+ import threading
4
+ from PyQt5.QtWidgets import QApplication, QWidget
5
+
6
+
7
+ class Example(QWidget):
8
+
9
+ def __init__(self):
10
+ super().__init__()
11
+
12
+ self.init_ui()
13
+
14
+ def init_ui(self):
15
+ self.setWindowTitle("Darkdetect Listener Example")
16
+ self.setGeometry(300, 300, 300, 300)
17
+
18
+ self.show()
19
+
20
+ def on_dark_mode_changed(self, dark_mode):
21
+ if dark_mode:
22
+ self.setStyleSheet("background-color: black; color: white;")
23
+ else:
24
+ self.setStyleSheet("background-color: white; color: black;")
25
+
26
+
27
+ if __name__ == "__main__":
28
+ app = QApplication(sys.argv)
29
+
30
+ listener = darkdetect.Listener(print)
31
+ t = threading.Thread(target=listener.listen, daemon=True)
32
+ # OR: t = threading.Thread(target=darkdetect.listener, args=(print,), daemon=True)
33
+ t.start()
34
+ example = Example()
35
+ sys.exit(app.exec_())
testing/test.py CHANGED
@@ -1,15 +1,17 @@
1
- """doc"""
1
+ import sys
2
2
 
3
- import psutil
3
+ from PyQt6.QtWidgets import QApplication, QMainWindow, QPushButton
4
4
 
5
- for proc in psutil.process_iter():
6
- if len(proc.cmdline()) == 2:
7
- print(proc.cmdline()[1])
5
+ import qdarktheme
8
6
 
9
- print(__name__)
10
- print(__file__)
11
- print(__cached__)
12
- print(__package__)
13
- print(__loader__)
7
+ app = QApplication(sys.argv)
8
+ # Apply dark theme.
9
+ qdarktheme.setup_theme()
14
10
 
15
- print(__loader__.get_filename())
11
+ main_win = QMainWindow()
12
+ push_button = QPushButton("PyQtDarkTheme!!")
13
+ main_win.setCentralWidget(push_button)
14
+
15
+ main_win.show()
16
+
17
+ app.exec()