Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46f7b50

Browse files
[po] auto sync
1 parent 0ee3886 commit 46f7b50

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

library/idle.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,11 @@ msgid ""
14971497
"Next enter ``b = tk.Button(root, text='button'); b.pack()``. Again, nothing"
14981498
" visibly changes in standard Python until one enters ``root.update()``."
14991499
msgstr ""
1500+
"IDLE 有意与标准 Python 保持区别以方便 tkinter 程序的开发。 在标准 Python 中输入 ``import tkinter as "
1501+
"tk; root = tk.Tk()`` 不会显示任何东西。 在 IDLE 中输入同样的代码则会显示一个 tk 窗口。 在标准 Python "
1502+
"中,还必须输入 ``root.update()`` 才会将窗口显示出来。 IDLE 会在幕后执行同样的方法,每秒大约 20 次,即每隔大约 50 毫秒。"
1503+
" 下面输入 ``b = tk.Button(root, text='button'); b.pack()``。 在标准 Python "
1504+
"中仍然不会有任何可见的变化,直到输入 ``root.update()``。"
15001505

15011506
#: ../../library/idle.rst:816
15021507
msgid ""
@@ -1506,6 +1511,9 @@ msgid ""
15061511
"``mainloop()`` returns, at which time there is nothing left to interact "
15071512
"with."
15081513
msgstr ""
1514+
"大多数 tkinter 程序都会运行 ``root.mainloop()``,它通常直到 tk 应用被销毁时才会返回。 如果程序是通过 ``python"
1515+
" -i`` 或 IDLE 编辑器运行的,则 ``>>>`` Shell 提示符将直到 ``mainloop()`` "
1516+
"返回时才会出现,这时将结束程序的交互。"
15091517

15101518
#: ../../library/idle.rst:822
15111519
msgid ""
@@ -1514,6 +1522,8 @@ msgid ""
15141522
"with the live application. One just has to remember to re-enable the "
15151523
"mainloop call when running in standard Python."
15161524
msgstr ""
1525+
"当通过 IDLE 编辑器运行 tkinter 程序时,可以注释掉 mainloop 调用。 这样将立即回到 Shell "
1526+
"提示符并可与正在运行的应用程序交互。 请记得当在标准 Python 中运行时重新启用 mainloop 调用。"
15171527

15181528
#: ../../library/idle.rst:828
15191529
msgid "Running without a subprocess"

0 commit comments

Comments
 (0)