gnope php gtk gui gnope.org  

Fast refresh of GtkWindow

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



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Wed Apr 05, 2006 3:40 pm    Post subject: Fast refresh of GtkWindow Reply with quote

Hi,

I have part written an app which creates a local SQLite database based on a set of tables in a remote MySql database, the records are then synchronised across to each of the SQLite tables.

Because the task is processor intensive the GtkWindow for the application will not appear fully until it has finished all its work.

I have tried:
$win->show();
$win->show_all();

to get it to display fully but it does not have any effect. What I wanted to do was to update the status bar in the window to show table being processed.

In VB6 there is a command called doEvents() that allows Windows to do any screen update, accept keys etc., is there something similar in php-gtk?

Regards

Rob
Back to top
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Wed Apr 05, 2006 3:48 pm    Post subject: Reply with quote

Ok, I've found the solution now in the previous progress bar post:

while (Gtk::events_pending()) {Gtk::main_iteration();}

Regards

Rob
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.