tdrpa.tdworker 1.2.13.64__py311-none-win_amd64.whl → 1.2.13.65__py311-none-win_amd64.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.
tdrpa/tdworker/_other.pyi CHANGED
@@ -75,76 +75,82 @@ class PrintToScreen:
75
75
 
76
76
  class Dialog:
77
77
  @staticmethod
78
- def MsgBox(title: str, message: str) -> None:
78
+ def MsgBox(title: str, prompt: str) -> None:
79
79
  """
80
80
  消息框
81
81
 
82
82
  Dialog.MsgBox('提示', '这是一个消息框')
83
83
 
84
84
  :param title:[必选参数]弹框标题
85
- :param message:[必选参数]弹框内容
85
+ :param prompt:[必选参数]弹框提示内容
86
86
  :return: 无
87
87
  """
88
+
88
89
  @staticmethod
89
90
  def InputBox(title: str, prompt: str, default: str = '') -> str | None:
90
91
  """
91
92
  输入对话框
92
93
 
93
- Dialog.InputBox('输入', '请输入内容:', default='你好')
94
+ Dialog.InputBox('输入对话框标题', '请输入内容:', default='请在这输入文本')
94
95
 
95
96
  :param title:[必选参数]弹框标题
96
- :param prompt:[必选参数]弹框内容
97
- :param default:[可选参数]输入框默认文本
98
- :return: 点确定按钮,返回用户输入的内容,点取消或关闭返回None
97
+ :param prompt:[必选参数]弹框提示内容
98
+ :param default:[可选参数]输入框默认文本,默认''
99
+ :return: 点确定按钮,返回用户输入的内容(字符串),点取消或关闭返回None
99
100
  """
101
+
100
102
  @staticmethod
101
103
  def PasswordBox(title: str, prompt: str) -> str | None:
102
104
  """
103
105
  密码输入对话框
104
106
 
105
- Dialog.PasswordBox('密码输入', '请输入密码:')
107
+ Dialog.PasswordBox('密码输入对话框标题', '请输入密码:')
106
108
 
107
109
  :param title:[必选参数]弹框标题
108
- :param prompt:[必选参数]弹框内容
109
- :return: 点确定按钮,返回用户输入的密码,点取消或关闭返回None
110
+ :param prompt:[必选参数]弹框提示内容
111
+ :return: 点确定按钮,返回用户输入的密码(字符串),点取消或关闭返回None
110
112
  """
113
+
111
114
  @staticmethod
112
115
  def NumberBox(title: str, prompt: str, default: str = '', minvalue: int = None, maxvalue: int = None, error_message: str = '请输入一个有效的整数!') -> int | None:
113
- """
116
+ '''
114
117
  整数输入对话框
115
118
 
116
- Dialog.NumberBox('输入', '请输入整数:', default='100', minvalue=10, maxvalue=200, error_message="请输入一个有效的整数!")
119
+ Dialog.NumberBox(\'整数对话框标题\', \'请输入整数:\', default=\'100\', minvalue=10, maxvalue=200, error_message="请输入一个有效的整数!")
117
120
 
118
121
  :param title:[必选参数]弹框标题
119
- :param prompt:[必选参数]弹框内容
120
- :param default:[可选参数]输入框默认文本
122
+ :param prompt:[必选参数]弹框提示内容
123
+ :param default:[可选参数]输入框默认文本,默认\'\'
121
124
  :param minvalue:[可选参数]最小值,默认None
122
125
  :param maxvalue:[可选参数]最大值,默认None
123
- :param error_message:[可选参数]输入非整数时提示的消息,默认"请输入一个有效的整数!"
124
- :return: 点确定按钮,返回用户输入的整数,点取消或关闭返回None
125
- """
126
+ :param error_message:[可选参数]输入非整数时的弹框提示语,默认"请输入一个有效的整数!"
127
+ :return: 点确定按钮,返回用户输入的整数(int类型),点取消或关闭返回None
128
+ '''
129
+
126
130
  @staticmethod
127
- def YnBox(title: str, message: str) -> bool:
131
+ def YnBox(title: str, prompt: str) -> bool:
128
132
  """
129
133
  确认对话框
130
134
 
131
- Dialog.YnBox('确认', '是否确认?')
135
+ Dialog.YnBox('确认对话框标题', '是否确认?')
132
136
 
133
137
  :param title:[必选参数]弹框标题
134
- :param message:[必选参数]弹框内容
138
+ :param prompt:[必选参数]弹框提示内容
135
139
  :return: 点是返回True,点否或关闭返回False
136
140
  """
141
+
137
142
  @staticmethod
138
143
  def MultenterBox(title: str, prompts: list) -> dict:
139
144
  """
140
145
  多行输入对话框
141
146
 
142
- Dialog.MultenterBox('输入', ['请输入姓名:', '请输入年龄:'])
147
+ Dialog.MultenterBox('多行输入对话框标题', ['请输入姓名:', '请输入年龄:'])
143
148
 
144
149
  :param title:[必选参数]弹框标题
145
- :param prompts:[必选参数]弹框内容,例如['请输入姓名:', '请输入年龄:']
150
+ :param prompts:[必选参数]弹框多行的字段内容,例如['请输入姓名:', '请输入年龄:']
146
151
  :return: 点确定按钮,返回用户输入的内容,格式为字典,键为字段内容,值为用户输入的内容,关闭返回{}
147
152
  """
153
+
148
154
  @staticmethod
149
155
  def MultchoiceBox(title: str, prompt: str, choices: list) -> list:
150
156
  """
@@ -153,7 +159,7 @@ class Dialog:
153
159
  Dialog.MultchoiceBox('选择', '请选择:', ['选项1', '选项2'])
154
160
 
155
161
  :param title:[必选参数]弹框标题
156
- :param prompt:[必选参数]弹框内容
162
+ :param prompt:[必选参数]弹框提示内容
157
163
  :param choices:[必选参数]选项内容,例如['选项1', '选项2']
158
164
  :return: 点确定按钮,返回用户选择的内容,格式为列表,关闭返回[]
159
165
  """
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tdrpa.tdworker
3
- Version: 1.2.13.64
3
+ Version: 1.2.13.65
4
4
  Summary: tdworker for tdrpa developers. supports python3.8+, windows x64
5
5
  Home-page: https://gitee.com/tdworker/command/wikis
6
6
  Author: vx:RPA_CREATOR
@@ -1,4 +1,4 @@
1
- tdrpa/tdworker.cp311-win_amd64.pyd,sha256=iU_ofDXSQ_JbbhgUPCNK0HN_LGol3ZU-bEPjfCzG8D8,5177856
1
+ tdrpa/tdworker.cp311-win_amd64.pyd,sha256=N4QVAnu0O_GudmqSuic_l24aGAgvc6jyQVFPk6qY-NM,5178368
2
2
  tdrpa/_tdxlwings/__init__.py,sha256=mxmqGWQ7xFb6e1GqkKEBfMQtZ8YyO4kAcPOvcJnD_2k,4424
3
3
  tdrpa/_tdxlwings/_win32patch.py,sha256=_IxTfvj663osTXh8b1S-A_N4PthS9gEWFLjpY4V0iUA,3443
4
4
  tdrpa/_tdxlwings/_xlmac.py,sha256=23OusKchbqglFi1s909tbB9fIwoFj6Yny4GiYrsnx5s,68521
@@ -84,10 +84,10 @@ tdrpa/_tdxlwings/rest/api.py,sha256=yfv1VkTpjQOzxLh4aMnZQsh8wTRHg34KkyipKDa_w4g,
84
84
  tdrpa/_tdxlwings/rest/serializers.py,sha256=ztMzL_EgbhAb3rSbfWFE2A9uyOykoZbkSoDHPeKXzGg,2885
85
85
  tdrpa/tdworker/__init__.pyi,sha256=WN0PZBusMdAWbN8tAW5tQrxR-DgOL1US1no2Yjx4D-U,370
86
86
  tdrpa/tdworker/_excel.pyi,sha256=ZTtS3A4bW-vlZEGRZm3FtvG9zRU-n_aWRj1W1xLoBbM,67332
87
- tdrpa/tdworker/_other.pyi,sha256=NQnlIlMGE22DVyP4dRVrrg4AshXIyl60s7qCo9m6s8U,43224
87
+ tdrpa/tdworker/_other.pyi,sha256=yWUAm33p2uXKFcdhMqavbRuj1hPMxXqD9wjT6TnpyFA,43455
88
88
  tdrpa/tdworker/_web.pyi,sha256=8NDI7COti61cdJSnUjJpogZazKw9dfuc3J923k4KX0k,69739
89
89
  tdrpa/tdworker/_win.pyi,sha256=bNF_mMn0Cc8tA1nMAX555EtL0f5HCy08AEHsRM1TAP8,36049
90
- tdrpa_tdworker-1.2.13.64.dist-info/METADATA,sha256=PQ0Zx0N3JphA8ju2z7dT1vxhToaTFmOEaRd02fqQg94,1164
91
- tdrpa_tdworker-1.2.13.64.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
92
- tdrpa_tdworker-1.2.13.64.dist-info/top_level.txt,sha256=S9UoqmC_cyGqKbGsBkLQPEeQLbDrWD0SRwbxPpQpyyU,6
93
- tdrpa_tdworker-1.2.13.64.dist-info/RECORD,,
90
+ tdrpa_tdworker-1.2.13.65.dist-info/METADATA,sha256=wEN9o7Muscp4Q_XqsQrcc1UCo1SyabGJWXS744coKhE,1164
91
+ tdrpa_tdworker-1.2.13.65.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
92
+ tdrpa_tdworker-1.2.13.65.dist-info/top_level.txt,sha256=S9UoqmC_cyGqKbGsBkLQPEeQLbDrWD0SRwbxPpQpyyU,6
93
+ tdrpa_tdworker-1.2.13.65.dist-info/RECORD,,