Re: I dont understand root['bg'] = 'red' where root is a tkinter.Tk object

2014-11-17 Thread Terry Reedy
On 11/17/2014 8:32 AM, ast wrote: Hello, import tkinter root = tkinter.Tk() Let's see all attributes of root: root.__dict__ {'master': None, 'children': {}, '_tclCommands': ['tkerror', 'exit', '13825848destroy'], 'tk': , '_tkloaded': 1} Now we change the background color using following com

Re: I dont understand root['bg'] = 'red' where root is a tkinter.Tk object

2014-11-17 Thread ast
"Peter Otten" <__pete...@web.de> a écrit dans le message de news:mailman.15958.1416233676.18130.python-l...@python.org... ty -- https://mail.python.org/mailman/listinfo/python-list

Re: I dont understand root['bg'] = 'red' where root is a tkinter.Tk object

2014-11-17 Thread Peter Otten
ast wrote: > Hello, > > import tkinter > root = tkinter.Tk() > > Let's see all attributes of root: > root.__dict__ > {'master': None, 'children': {}, '_tclCommands': ['tkerror', 'exit', > {'13825848destroy'], 'tk': > , '_tkloaded': 1} > > Now we change the background color using following

I dont understand root['bg'] = 'red' where root is a tkinter.Tk object

2014-11-17 Thread ast
Hello, import tkinter root = tkinter.Tk() Let's see all attributes of root: root.__dict__ {'master': None, 'children': {}, '_tclCommands': ['tkerror', 'exit', '13825848destroy'], 'tk': , '_tkloaded': 1} Now we change the background color using following command: root['bg'] = 'red' I am w