pycoze 0.1.213__py3-none-any.whl → 0.1.214__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
@@ -184,3 +184,16 @@ def multi_video_select(
184
184
 
185
185
  def seed(name, default=0, tip="", hide_if="", style="", cls="") -> int:
186
186
  return useDefault(name, default)
187
+
188
+
189
+
190
+ _cache_button_ui = get_ui()
191
+ def button( name, tip="", hide_if="")->bool:
192
+ value = useDefault(name, -1)
193
+ if value is None: #value==None只会发生在在首次打开UI,后续每次运行都不会进入这里
194
+ value = _cache_button_ui[name]
195
+ if value != _cache_button_ui[name]:
196
+ _cache_button_ui[name] = value # 更新last_value的值
197
+ return True
198
+ return False
199
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.213
3
+ Version: 0.1.214
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=7xAfL2lfG7-jllPJEZUJO89xUE9sNzvo1y0WmBswjBI,458
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=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
26
+ pycoze/ui/ui_def.py,sha256=x9xaWvKz_TihzDKGUjA4mCOTFRfWK8WrkLPkN2VGK0E,4609
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.213.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
32
- pycoze-0.1.213.dist-info/METADATA,sha256=ri60xG0hbqLctzLvRq_r8PSdP87pcOcuWds0DVeIcQ0,726
33
- pycoze-0.1.213.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
34
- pycoze-0.1.213.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
35
- pycoze-0.1.213.dist-info/RECORD,,
31
+ pycoze-0.1.214.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
32
+ pycoze-0.1.214.dist-info/METADATA,sha256=fsv2RBtzhhheObgZTCvhHc5CUh3Rb_XH5627_5LSmeI,726
33
+ pycoze-0.1.214.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
34
+ pycoze-0.1.214.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
35
+ pycoze-0.1.214.dist-info/RECORD,,