View Full Version : Controlling Glade generated GUI?
Kimm
May 8th, 2005, 09:38 AM
I am woundering how I can control a GUI generated by Glade??
I mean, change the caption of a label for example, or perhaps the value of a progressbar.
Can anyone help?
Domhnull
May 8th, 2005, 11:39 AM
I'm a bit new to this but as I understand it you have to write the backend code in your language of choice. Glade just designs the interface. I found a bunch of python/glade tutorials by searching w/Google. I'm sure you can find some appropriate examples.
Kimm
May 8th, 2005, 11:56 AM
I'm not sure what you mean, but Glade can generate the source code I need, I just dont know how to control it, my program is written in C++
vague-
May 8th, 2005, 03:18 PM
Libglade provides access to your widgets, you just have to ask for it. The example C code on the libglade homepage[1] shows you how you do this. You can then perform the operations on the returned object. In order to have none GUI control-based events callback to your code, you will need to read about signals and the main event loop in Glib (or whatever wrapper you are using). If you did choose the C++ API, Gtkmm, then the documentation is quite extensive.
[1] http://www.jamesh.id.au/software/libglade/
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.