I have been learning Python2.7 for a little bit now. I\'m using Windows 7 64 bit BTW. I started learning GUI\'s and have been trying to use wxpython and IDLE for this. So I type
It seems that something might be polluting variables in the threading
library, it looks like _sleep
variable is being overwritten with an int
value; in which case _sleep(x)
will not work since _sleep
is an int
and int
s are not callable.
It may be in your client code or in some framework code or libraries you are import
ing. Is that all of the code?
Try running this code from a plain python terminal, not from an IDE like IDLE.