Почему mainloop() не в начале вашего кода, а в конце? ⇐ Python
Почему mainloop() не в начале вашего кода, а в конце?
I understand how the function works itself, however, mainloop() is usually at the end of your code in modules like turtle and tkinter and you're required to put it at the end or there will be a syntax error and/or the remaining code is discarded
Since Python is a step by step process, wouldn't it make more sense for it to be put at the start?
Источник: https://stackoverflow.com/questions/780 ... of-the-end
I understand how the function works itself, however, mainloop() is usually at the end of your code in modules like turtle and tkinter and you're required to put it at the end or there will be a syntax error and/or the remaining code is discarded
Since Python is a step by step process, wouldn't it make more sense for it to be put at the start?
Источник: https://stackoverflow.com/questions/780 ... of-the-end
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Tkinter блокирует Python, когда загружается значок, а Tk.mainloop находится в потоке
Anonymous » » в форуме Python - 0 Ответы
- 6 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Python Tkinter: дождитесь ввода пользователя, прежде чем продолжить с MainLoop
Anonymous » » в форуме Python - 0 Ответы
- 4 Просмотры
-
Последнее сообщение Anonymous
-