我试着让两个球在屏幕上移动,位置是用线程更新的,主线程是更新图形的,这是我的代码:from threading import * self.tk.call((self._w, 'move') + args)
_tkinter.TclError: out of stack space (infinite loop?)/
我目前正在开发一个来自python的tkinter库的电子邮件发送和接收程序。我正在使用线程模块让程序每隔60秒刷新一次未读的电子邮件,而你仍然可以继续在程序中做一些事情。import tkinter, re, threading, time, imaplib, too many to list here.
def _
该示例代码在Python中运行良好。,但问题是是冻结的。当我按下第一个按钮并启动10个异步任务时,我无法在GUI中按下第二个按钮,直到所有任务都完成为止。GUI不应该冻结--这是我的目标。# -*- coding: utf-8 -*-
from tkinter import messagebox
import""" Button-Event-Handler to see
我以前用python写过代码,但我没怎么用过tkinter。我写了这段代码,但我不明白为什么它不能工作。我在网上查过了,什么也没找到。以前也发生过这种情况,但不幸的是我找不到这个程序。, in run File "C:\Python33\lib\tkinter\__init__.py", line 2299, in coords, in run File &qu