jonay

error tk

Sep 24th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. Error tk
  2. ===================================================
  3. from tkinter import *
  4.  
  5. v0 = Tk()
  6. v0.mainloop()
  7. v0.config(bg="black")
  8. =============================================
  9. C:\>a.py
  10. Traceback (most recent call last):
  11.   File "C:\a.py", line 5, in <module>
  12.     v0.config(bg="black")
  13.   File "C:\Python34\lib\tkinter\__init__.py", line 1270, in configure
  14.     return self._configure('configure', cnf, kw)
  15.   File "C:\Python34\lib\tkinter\__init__.py", line 1261, in _configure
  16.     self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
  17. _tkinter.TclError: invalid command name "."
  18.  
  19. C:\>
Advertisement
Add Comment
Please, Sign In to add comment