gnope php gtk gui gnope.org  

Update/event handling from within callback functions

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
Ndru



Joined: 17 Dec 2005
Posts: 5

PostPosted: Wed Feb 15, 2006 2:04 pm    Post subject: Update/event handling from within callback functions Reply with quote

Is there a convenient way to handle events and/or gui updates from within a callback function?

I need to create an application containing a long running recursive callback function and still have user interface updates without returning to the main loop. I also need to temporarily suspend the recursion at a certain point until user input is provided.

Can someone help me out with ideas of how to achieve this or let me know of possible setbacks i'm likely to encounter?
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Feb 15, 2006 2:07 pm    Post subject: Reply with quote

Code:
while(Gtk::events_pending()) { Gtk::main_iteration(); }
Back to top
Ndru



Joined: 17 Dec 2005
Posts: 5

PostPosted: Wed Feb 15, 2006 3:38 pm    Post subject: Reply with quote

Thanks for the quick answer.

It worked like a charm.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.