pycoze 0.1.216__py3-none-any.whl → 0.1.218__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.
- pycoze/ui/ui_def.py +10 -2
- {pycoze-0.1.216.dist-info → pycoze-0.1.218.dist-info}/METADATA +1 -1
- {pycoze-0.1.216.dist-info → pycoze-0.1.218.dist-info}/RECORD +6 -6
- {pycoze-0.1.216.dist-info → pycoze-0.1.218.dist-info}/LICENSE +0 -0
- {pycoze-0.1.216.dist-info → pycoze-0.1.218.dist-info}/WHEEL +0 -0
- {pycoze-0.1.216.dist-info → pycoze-0.1.218.dist-info}/top_level.txt +0 -0
pycoze/ui/ui_def.py
CHANGED
@@ -185,5 +185,13 @@ def multi_video_select(
|
|
185
185
|
def seed(name, default=0, tip="", hide_if="", style="", cls="") -> int:
|
186
186
|
return useDefault(name, default)
|
187
187
|
|
188
|
-
|
189
|
-
|
188
|
+
_cache_button_ui = get_ui()
|
189
|
+
def button( name, tip="", hide_if="")->bool:
|
190
|
+
value = useDefault(name, -1)
|
191
|
+
if value is None: #value==None只会发生在在首次打开UI,后续每次运行都不会进入这里
|
192
|
+
value = _cache_button_ui[name]
|
193
|
+
if value != _cache_button_ui[name]:
|
194
|
+
_cache_button_ui[name] = value # 更新last_value的值
|
195
|
+
return True
|
196
|
+
return False
|
197
|
+
|
@@ -23,13 +23,13 @@ pycoze/ui/__init__.py,sha256=RTEUVXdMo7AYC1wsyS1yl5sLi5vf4bNFv4iggghGEgg,469
|
|
23
23
|
pycoze/ui/base.py,sha256=sbBZGMUtlosWHQJpxMULa1bGByeSlcldtE9QXNyiJmM,1093
|
24
24
|
pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
|
25
25
|
pycoze/ui/typ.py,sha256=NpT0FrbHvByOszBZMFtroRp7I7pN-38tYz_zPOPejF4,1723
|
26
|
-
pycoze/ui/ui_def.py,sha256=
|
26
|
+
pycoze/ui/ui_def.py,sha256=pvZLTy8mo2c9KEtXDcc4XojyV03-nnMjujPgm0W2J_0,4607
|
27
27
|
pycoze/utils/__init__.py,sha256=Gi5EnrWZGMD2JRejgV4c_VLCXyvA2wwBFI_niDF5MUE,110
|
28
28
|
pycoze/utils/arg.py,sha256=GtfGbMTMdaK75Fwh6MpUe1pCA5X6Ep4LFG7a72YrzjI,525
|
29
29
|
pycoze/utils/env.py,sha256=W04lhvTHhAAC6EldP6kk2xrctqtu8K6kl1vDLZDNeh8,561
|
30
30
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
31
|
-
pycoze-0.1.
|
32
|
-
pycoze-0.1.
|
33
|
-
pycoze-0.1.
|
34
|
-
pycoze-0.1.
|
35
|
-
pycoze-0.1.
|
31
|
+
pycoze-0.1.218.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
32
|
+
pycoze-0.1.218.dist-info/METADATA,sha256=NG-bMZRslJi5K9Qvt8sSVZQ-Uu_jzDR8kiSbKKtEtps,726
|
33
|
+
pycoze-0.1.218.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
34
|
+
pycoze-0.1.218.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
35
|
+
pycoze-0.1.218.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|