gnope php gtk gui gnope.org  

progress bar

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



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Mon Jun 26, 2006 5:23 pm    Post subject: progress bar Reply with quote

what is the best way to do a progress bar in php-gtk2??
want to add a graphical frount end to my download program.

regards leon
Back to top
cweiske



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

PostPosted: Mon Jun 26, 2006 5:52 pm    Post subject: Reply with quote

Use GtkProgressbar. Further, you need to call the main_iteration while events are pending after setting the percentage to update the gui.
Remember that there are no threads in php-gtk.
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Mon Jun 26, 2006 6:01 pm    Post subject: Reply with quote

could you post an example

as this may help alot.
Back to top
cweiske



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

PostPosted: Mon Jun 26, 2006 6:03 pm    Post subject: Reply with quote

The PEAR_Frontend_Gtk2 package uses a progress bar, look at its sources
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Mon Jun 26, 2006 6:30 pm    Post subject: Reply with quote

thanks found a good example on the forum just after asking now have my down;load app working its not very advanced you type in the locatioon of the file to download and the location to save it to the click download and it downloads it showing a progrssbar

regrads leon
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.