8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.12\n "
10
10
"Report-Msgid-Bugs-To :\n "
11
- "POT-Creation-Date :2021-09-13 00:11 +0000\n "
11
+ "POT-Creation-Date :2023-11-02 00:03 +0000\n "
12
12
"PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator :FULL NAME <EMAIL@ADDRESS>\n "
14
14
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -30,23 +30,216 @@ msgstr "**原始碼:**\\ :source:`Lib/tkinter/messagebox.py`"
30
30
msgid ""
31
31
"The :mod:`tkinter.messagebox` module provides a template base class as well "
32
32
"as a variety of convenience methods for commonly used configurations. The "
33
- "message boxes are modal and will return a subset of (True, False, OK, None, "
34
- "Yes, No) based on the user's selection. Common message box styles and "
35
- "layouts include but are not limited to:"
33
+ "message boxes are modal and will return a subset of (``True``, ``False``, "
34
+ "``None``, :data:`OK`, :data:`CANCEL`, :data:`YES`, :data:`NO`) based on the "
35
+ "user's selection. Common message box styles and layouts include but are not "
36
+ "limited to:"
36
37
msgstr ""
37
38
38
- #: ../../library/tkinter.messagebox.rst:22
39
- msgid "Create a default information message box."
39
+ #: ../../library/tkinter.messagebox.rst:23
40
+ msgid ""
41
+ "Create a message window with an application-specified message, an icon and a "
42
+ "set of buttons. Each of the buttons in the message window is identified by a "
43
+ "unique symbolic name (see the *type* options)."
44
+ msgstr ""
45
+
46
+ #: ../../library/tkinter.messagebox.rst:27
47
+ msgid "The following options are supported:"
48
+ msgstr ""
49
+
50
+ #: ../../library/tkinter.messagebox.rst:33
51
+ msgid "*command*"
52
+ msgstr ""
53
+
54
+ #: ../../library/tkinter.messagebox.rst:30
55
+ msgid ""
56
+ "Specifies the function to invoke when the user closes the dialog. The name "
57
+ "of the button clicked by the user to close the dialog is passed as argument. "
58
+ "This is only available on macOS."
59
+ msgstr ""
60
+
61
+ #: ../../library/tkinter.messagebox.rst:39
62
+ msgid "*default*"
63
+ msgstr ""
64
+
65
+ #: ../../library/tkinter.messagebox.rst:36
66
+ msgid ""
67
+ "Gives the :ref:`symbolic name <messagebox-buttons>` of the default button "
68
+ "for this message window (:data:`OK`, :data:`CANCEL`, and so on). If this "
69
+ "option is not specified, the first button in the dialog will be made the "
70
+ "default."
71
+ msgstr ""
72
+
73
+ #: ../../library/tkinter.messagebox.rst:46
74
+ msgid "*detail*"
75
+ msgstr ""
76
+
77
+ #: ../../library/tkinter.messagebox.rst:42
78
+ msgid ""
79
+ "Specifies an auxiliary message to the main message given by the *message* "
80
+ "option. The message detail will be presented beneath the main message and, "
81
+ "where supported by the OS, in a less emphasized font than the main message."
82
+ msgstr ""
83
+
84
+ #: ../../library/tkinter.messagebox.rst:51
85
+ msgid "*icon*"
86
+ msgstr ""
87
+
88
+ #: ../../library/tkinter.messagebox.rst:49
89
+ msgid ""
90
+ "Specifies an :ref:`icon <messagebox-icons>` to display. If this option is "
91
+ "not specified, then the :data:`INFO` icon will be displayed."
40
92
msgstr ""
41
93
42
- #: ../../library/tkinter.messagebox.rst:24
94
+ #: ../../library/tkinter.messagebox.rst:55
95
+ msgid "*message*"
96
+ msgstr ""
97
+
98
+ #: ../../library/tkinter.messagebox.rst:54
99
+ msgid ""
100
+ "Specifies the message to display in this message box. The default value is "
101
+ "an empty string."
102
+ msgstr ""
103
+
104
+ #: ../../library/tkinter.messagebox.rst:59
105
+ msgid "*parent*"
106
+ msgstr ""
107
+
108
+ #: ../../library/tkinter.messagebox.rst:58
109
+ msgid ""
110
+ "Makes the specified window the logical parent of the message box. The "
111
+ "message box is displayed on top of its parent window."
112
+ msgstr ""
113
+
114
+ #: ../../library/tkinter.messagebox.rst:64
115
+ msgid "*title*"
116
+ msgstr ""
117
+
118
+ #: ../../library/tkinter.messagebox.rst:62
119
+ msgid ""
120
+ "Specifies a string to display as the title of the message box. This option "
121
+ "is ignored on macOS, where platform guidelines forbid the use of a title on "
122
+ "this kind of dialog."
123
+ msgstr ""
124
+
125
+ #: ../../library/tkinter.messagebox.rst:68
126
+ msgid "*type*"
127
+ msgstr ""
128
+
129
+ #: ../../library/tkinter.messagebox.rst:67
130
+ msgid ""
131
+ "Arranges for a :ref:`predefined set of buttons <messagebox-types>` to be "
132
+ "displayed."
133
+ msgstr ""
134
+
135
+ #: ../../library/tkinter.messagebox.rst:72
136
+ msgid ""
137
+ "Display a message window and wait for the user to select one of the buttons. "
138
+ "Then return the symbolic name of the selected button. Keyword arguments can "
139
+ "override options specified in the constructor."
140
+ msgstr ""
141
+
142
+ #: ../../library/tkinter.messagebox.rst:76
43
143
msgid "**Information message box**"
44
144
msgstr ""
45
145
46
- #: ../../library/tkinter.messagebox.rst:28
146
+ #: ../../library/tkinter.messagebox.rst:80
147
+ msgid ""
148
+ "Creates and displays an information message box with the specified title and "
149
+ "message."
150
+ msgstr ""
151
+
152
+ #: ../../library/tkinter.messagebox.rst:83
47
153
msgid "**Warning message boxes**"
48
154
msgstr ""
49
155
50
- #: ../../library/tkinter.messagebox.rst:33
156
+ #: ../../library/tkinter.messagebox.rst:87
157
+ msgid ""
158
+ "Creates and displays a warning message box with the specified title and "
159
+ "message."
160
+ msgstr ""
161
+
162
+ #: ../../library/tkinter.messagebox.rst:92
163
+ msgid ""
164
+ "Creates and displays an error message box with the specified title and "
165
+ "message."
166
+ msgstr ""
167
+
168
+ #: ../../library/tkinter.messagebox.rst:95
51
169
msgid "**Question message boxes**"
52
170
msgstr ""
171
+
172
+ #: ../../library/tkinter.messagebox.rst:99
173
+ msgid ""
174
+ "Ask a question. By default shows buttons :data:`YES` and :data:`NO`. Returns "
175
+ "the symbolic name of the selected button."
176
+ msgstr ""
177
+
178
+ #: ../../library/tkinter.messagebox.rst:104
179
+ msgid ""
180
+ "Ask if operation should proceed. Shows buttons :data:`OK` and :data:"
181
+ "`CANCEL`. Returns ``True`` if the answer is ok and ``False`` otherwise."
182
+ msgstr ""
183
+
184
+ #: ../../library/tkinter.messagebox.rst:109
185
+ msgid ""
186
+ "Ask if operation should be retried. Shows buttons :data:`RETRY` and :data:"
187
+ "`CANCEL`. Return ``True`` if the answer is yes and ``False`` otherwise."
188
+ msgstr ""
189
+
190
+ #: ../../library/tkinter.messagebox.rst:114
191
+ msgid ""
192
+ "Ask a question. Shows buttons :data:`YES` and :data:`NO`. Returns ``True`` "
193
+ "if the answer is yes and ``False`` otherwise."
194
+ msgstr ""
195
+
196
+ #: ../../library/tkinter.messagebox.rst:119
197
+ msgid ""
198
+ "Ask a question. Shows buttons :data:`YES`, :data:`NO` and :data:`CANCEL`. "
199
+ "Return ``True`` if the answer is yes, ``None`` if cancelled, and ``False`` "
200
+ "otherwise."
201
+ msgstr ""
202
+
203
+ #: ../../library/tkinter.messagebox.rst:126
204
+ msgid "Symbolic names of buttons:"
205
+ msgstr ""
206
+
207
+ #: ../../library/tkinter.messagebox.rst:145
208
+ msgid "Predefined sets of buttons:"
209
+ msgstr ""
210
+
211
+ #: ../../library/tkinter.messagebox.rst:150
212
+ msgid ""
213
+ "Displays three buttons whose symbolic names are :data:`ABORT`, :data:`RETRY` "
214
+ "and :data:`IGNORE`."
215
+ msgstr ""
216
+
217
+ #: ../../library/tkinter.messagebox.rst:157
218
+ msgid "Displays one button whose symbolic name is :data:`OK`."
219
+ msgstr ""
220
+
221
+ #: ../../library/tkinter.messagebox.rst:162
222
+ msgid ""
223
+ "Displays two buttons whose symbolic names are :data:`OK` and :data:`CANCEL`."
224
+ msgstr ""
225
+
226
+ #: ../../library/tkinter.messagebox.rst:168
227
+ msgid ""
228
+ "Displays two buttons whose symbolic names are :data:`RETRY` and :data:"
229
+ "`CANCEL`."
230
+ msgstr ""
231
+
232
+ #: ../../library/tkinter.messagebox.rst:174
233
+ msgid ""
234
+ "Displays two buttons whose symbolic names are :data:`YES` and :data:`NO`."
235
+ msgstr ""
236
+
237
+ #: ../../library/tkinter.messagebox.rst:180
238
+ msgid ""
239
+ "Displays three buttons whose symbolic names are :data:`YES`, :data:`NO` and :"
240
+ "data:`CANCEL`."
241
+ msgstr ""
242
+
243
+ #: ../../library/tkinter.messagebox.rst:185
244
+ msgid "Icon images:"
245
+ msgstr ""