PDA

View Full Version : Linking script echo output to display in Glade GUI



KB1LQC
July 18th, 2008, 01:27 PM
I have a script that is at some point outputting data in the shell. For example: echo"Drive sd${i} is attached". How would I show this text in the GUI for one or multiple drives with C? There is some info on this in python but not in C.

mssever
July 18th, 2008, 08:04 PM
I have a script that is at some point outputting data in the shell. For example: echo"Drive sd${i} is attached". How would I show this text in the GUI for one or multiple drives with C? There is some info on this in python but not in C.
Try making a function that will create and show a dialog containing what you want to output. Then, you can simply call that function wherever you need it.