[Gtk-sharp-list] ProgressBar connected to process
glacialfury
glacialfury at gmail.com
Sat May 2 14:15:18 EDT 2009
Hi,
I'm experimenting with small programs to learn my way around GTK programming
with C#/mono. In this case, I have a GUI with three elements: a Button, a
TextView, and a ProgressBar. Pressing the button runs an external process
("ping -c 4 localhost") and displays the output in the textview. This works
perfectly.
I next attempted to "tie" this in with a progress bar, because there is no
indicator that it is pinging until it finishes the command and posts the
output. I have been unable to find any useful tutorials or examples for
this kind of work. So ...
1) Is it possible to tie a progress bar to a process? I.e., it starts to
pulse when the process starts, and ceases to pulse when the process
finishes?
..... while (Process is running) { ProgressBar.pulse(); }
2) If I were to then build two commands (and two progress bars) in to the
program, would they have to be run in separate threads if I wanted them to
be processed at the same time?
Respectfully,
David Alt
--
View this message in context: http://www.nabble.com/ProgressBar-connected-to-process-tp23348895p23348895.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list