You are not logged in.

#1 2006-05-09 08:01:05

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

How to use GtkProgressBar

Searching for a simple sample how GtkProgressBar is working. Preferable in Ruby with libglade or in any language.


Markku

Offline

#2 2006-05-09 08:16:44

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: How to use GtkProgressBar

Used it once, think it's an example in the gtk-(C)-tutorial: http://www.gtk.org/tutorial/x850.html

Offline

#3 2006-05-09 09:17:29

tranquility
Member
From: Portugal
Registered: 2004-08-06
Posts: 136

Re: How to use GtkProgressBar

Offline

#4 2006-05-10 09:26:57

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: How to use GtkProgressBar

I managed this far but the progress bar (progress_box) only appears after the loop test is done. What's missing?

Was not able to get all characters to appear here, click the url:
http://user-contributions.org/projects/pkginfo/test.txt

Copied from here:
http://groups.google.com/group/comp.lan … 11f573a4a7


Markku

Offline

#5 2006-05-11 14:33:18

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: How to use GtkProgressBar

Getting closer to the solution. Progress bar box appears but cannot get the time loop to run. What's missing from the original sample:
http://groups.google.com/group/comp.lan … 11f573a4a7

My sample:
http://user-contributions.org/projects/ … /test2.txt


Markku

Offline

#6 2006-05-11 20:46:21

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How to use GtkProgressBar

I'm not a ruby expert but it looks like your inner loop is set to break when you want it but returns to the outer with nothing stopping it. Try setting a variable before both loops which the inner loop will flag once its finished with its own so that the outer loop can read it and break if that variable is flagged.

Offline

#7 2006-05-13 06:12:22

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: How to use GtkProgressBar

Got the final solution in Ruby Forum. Its in German but supports questions in English.
http://www.rubyforen.de/viewtopic.php?p=13659


Markku

Offline

Board footer

Powered by FluxBB