pycoze 0.1.216__py3-none-any.whl → 0.1.218__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.216
3
+ Version: 0.1.218
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -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=lslL6JQSbP3xFEQ1xyboru_VItycQkLz41Vfz0x0Vb4,4209
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.216.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
32
- pycoze-0.1.216.dist-info/METADATA,sha256=DxGlYSUKlj1xmotV_UNHSXeVc76mujvJC0_9DlkOYAk,726
33
- pycoze-0.1.216.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
34
- pycoze-0.1.216.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
35
- pycoze-0.1.216.dist-info/RECORD,,
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,,