pycoze 0.1.257__py3-none-any.whl → 0.1.259__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,19 +12,14 @@ class WindowCls:
12
12
  result = socket.post_and_recv_result("get-selected-text", {})
13
13
  return result
14
14
 
15
- def append_msg(self, message: str, type='info'):
15
+ def append_msg(self, message: str, type: str = 'info'):
16
+ assert type in ['info', 'warning', 'success', 'error'], 'type must be info, warning, success or error'
16
17
  if not isinstance(message, str):
17
18
  message = repr(message)
18
19
  socket.post("append-msg", {"message": message, "type": type})
19
20
 
20
- def show_operation(self, text: str):
21
- socket.post("show-operation", {"text": text})
22
-
23
- def screenshot(self, name):
24
- socket.post("screenshot", {"name": name})
25
-
26
- def confirm(self, message: str) -> bool:
27
- return socket.post_and_recv_result("confirm", {"message": message})
21
+ def confirm(self, title:str, message: str) -> bool:
22
+ return socket.post_and_recv_result("confirm", {"title":title, "message": message})
28
23
 
29
24
  def maximize(self):
30
25
  socket.post("maximize", {})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.257
3
+ Version: 0.1.259
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -8,7 +8,7 @@ pycoze/ai/llm/think.py,sha256=sUgTBdGzcZtL3r-Wx8M3lDuVUmDVz8g3qC0VU8uiKAI,5143
8
8
  pycoze/api/__init__.py,sha256=Bb7Trv4y5vti-Tt_4fiu7Zfr1HF_vuxASHReLiUHXn4,137
9
9
  pycoze/api/api.py,sha256=OPLp4t4szP4azCTEBNEHO9CIDl9JrmfZPK9mONpvQC0,137
10
10
  pycoze/api/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- pycoze/api/lib/window_cls.py,sha256=uXK0WM64_IpaYXFn6tdWlZZ8AWXLVPZOScENkaCXERI,1774
11
+ pycoze/api/lib/window_cls.py,sha256=nB6vIRq76hYOPR9uYYBOkXRMRVgvr2_NGkw6Pve4IQ0,1734
12
12
  pycoze/bot/__init__.py,sha256=JxnRoCCqx_LFyVb3pLu0qYCsH8ZLuAaMXAtvVUuCHuE,78
13
13
  pycoze/bot/agent_chat.py,sha256=ARXXsIVCTpmBojz2C4BR69nB0QhM6gkEngL3iq34JPo,4178
14
14
  pycoze/bot/bot.py,sha256=_qmUTZ09FmRLifHrW5stDZWGVK6yuMEMBC3fmeYJnqk,844
@@ -34,8 +34,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
34
34
  pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
35
35
  pycoze/utils/socket.py,sha256=yyYgx7G40x58sV466OQH0vj3i55xgR3uMDEjbQMbGks,2413
36
36
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
37
- pycoze-0.1.257.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
38
- pycoze-0.1.257.dist-info/METADATA,sha256=ZgRSbR7eyjWMl6GnMh0fVg0WSzUFGVa02LV6ADkoy2o,699
39
- pycoze-0.1.257.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
40
- pycoze-0.1.257.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
41
- pycoze-0.1.257.dist-info/RECORD,,
37
+ pycoze-0.1.259.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
38
+ pycoze-0.1.259.dist-info/METADATA,sha256=QHmz5-RJaoD1JFm8lYzLBPC0M24xW7jaqrBftA4t7Bc,699
39
+ pycoze-0.1.259.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
40
+ pycoze-0.1.259.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
41
+ pycoze-0.1.259.dist-info/RECORD,,