Sorry about that :) Still, there should be a better way than polling for events. The C client library uses select() to wait for either input from pgserver or a timeout. Something like that could be implemented in cli_python if this implementation is a problem.
On Fri, Aug 02, 2002 at 03:22:06AM -0300, Lalo Martins wrote: > On Thu, Aug 01, 2002 at 04:35:04PM -0600, Micah Dowty wrote: > > I made a small change to the cli_python event loop so that it wouldn't eat up 100% >CPU while idle. I might have messed something up when I did that? > > Confirmed, that was it. Your fix was trying to consume events that weren't > there, and additionally it was keeping idle events from ever happening. The > proper fix was (IMHO) to add a small call to sleep() - which I did and just > committed to cvs. > > > On Thu, Aug 01, 2002 at 05:21:27PM -0300, Lalo Martins wrote: > > > On Thu, Aug 01, 2002 at 12:25:59PM -0600, Gray, Tim wrote: > > > > When I run the Hellow_World_and_bye.py and you click on the button at the > > > > bottom. you have to click it twice for it to work. I have also noticed that > > > > after adding a second button that simply changes the bye.text to something > > > > different it also does nothing until I click another button. > > []s, > |alo > +---- > -- > Those who trade freedom for security > lose both and deserve neither. > -- > http://www.laranja.org/ mailto:[EMAIL PROTECTED] > pgp key: http://www.laranja.org/pessoal/pgp > > Eu jogo RPG! (I play RPG) http://www.eujogorpg.com.br/ > Python Foundry Guide http://www.sf.net/foundry/python-foundry/ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Pgui-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/pgui-devel -- Only you can prevent creeping featurism! ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
