Re: [Tutor] i know this should be easy

2005-08-17 Thread nephish
Kent Johnson wrote: >nephish wrote: > > >>Hey there, >>i have a simple question. >>if something returns a true or false, how do i test for it with an if >>statement? >>i am using pygtk with a toggle button that returns TRUE if checked and >>FALSE if not. >>do i need quotes around the TRUE / FA

Re: [Tutor] i know this should be easy

2005-08-17 Thread Kent Johnson
nephish wrote: > Hey there, > i have a simple question. > if something returns a true or false, how do i test for it with an if > statement? > i am using pygtk with a toggle button that returns TRUE if checked and > FALSE if not. > do i need quotes around the TRUE / FALSE or should i use 1 and 0?

Re: [Tutor] i know this should be easy

2005-08-17 Thread nephish
Jeremy Jones wrote: > nephish wrote: > >> Hey there, >> i have a simple question. >> if something returns a true or false, how do i test for it with an if >> statement? >> i am using pygtk with a toggle button that returns TRUE if checked >> and FALSE if not. >> do i need quotes around the TRUE

Re: [Tutor] i know this should be easy

2005-08-17 Thread Jeremy Jones
nephish wrote: >Hey there, >i have a simple question. >if something returns a true or false, how do i test for it with an if >statement? >i am using pygtk with a toggle button that returns TRUE if checked and >FALSE if not. >do i need quotes around the TRUE / FALSE or should i use 1 and 0? > >Au

[Tutor] i know this should be easy

2005-08-17 Thread nephish
Hey there, i have a simple question. if something returns a true or false, how do i test for it with an if statement? i am using pygtk with a toggle button that returns TRUE if checked and FALSE if not. do i need quotes around the TRUE / FALSE or should i use 1 and 0? Auto_Tog = self.AutoCheckRa