Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Wayne Werner
On Mon, 11 Jun 2012, Mark Summerfield wrote: Hi, For tkinter methods that take 0 or 1 for true or false such as wm_overrideredirect(), is it safe to use Python's True and False builtins instead? Doing so seems to work, but just wanted to check. I'm somewhat certain that it will work just fin

Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Michael Lange
Hi, Thus spoketh Wayne Werner unto us on Tue, 12 Jun 2012 06:11:28 -0500 (CDT): > I'm somewhat certain that it will work just fine, at least it does > everywhere I've used it. I agree. Although I am too lazy to dig through the tkinter sources, I am quite sure that the tkapp object allows True

Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Cameron Laird
On Tue, Jun 12, 2012 at 02:00:27PM +0200, Michael Lange wrote: > Thus spoketh Wayne Werner > unto us on Tue, 12 Jun 2012 06:11:28 -0500 (CDT): > > > I'm somewhat certain that it will work just fine, at least it does > > everywhere I've used it. > > I agree. Although I am too lazy to dig through

Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Michael Lange
Hi, Thus spoketh Cameron Laird unto us on Tue, 12 Jun 2012 12:16:22 +: > . > http://docs.python.org/release/2.5.2/lib/truth.html > hmm, but this does not seem to apply to Tkinter, for example >>> root.overrideredirect([]) Traceback (most recent call last): File "",

Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Mark Summerfield
Hi Michael, On Tue, 12 Jun 2012 19:04:04 +0200 Michael Lange wrote: > Hi, [snip] > >>> root.overrideredirect(0.0) > >>> root.overrideredirect(0L) > >>> root.overrideredirect(55) > >>> > > whereas: > > >>> getboolean(0.0) > Traceback (most recent call last): > File "", line 1, in > File "/