| View previous topic :: View next topic |
| Author |
Message |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Mon Jun 26, 2006 5:23 pm Post subject: progress bar |
|
|
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
|
Posted: Mon Jun 26, 2006 5:52 pm Post subject: |
|
|
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
|
Posted: Mon Jun 26, 2006 6:01 pm Post subject: |
|
|
could you post an example
as this may help alot. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Mon Jun 26, 2006 6:03 pm Post subject: |
|
|
| 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
|
Posted: Mon Jun 26, 2006 6:30 pm Post subject: |
|
|
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 |
|
 |
|