开发者

Glade GTK accessing individual widgets

开发者 https://www.devze.com 2023-03-26 12:26 出处:网络
I constructed a database manipulating GUI using glade, for my add button hierarc开发者_如何学运维hy is add->confirmation dialog->(if yes)add data.

I constructed a database manipulating GUI using glade, for my add button hierarc开发者_如何学运维hy is add->confirmation dialog->(if yes)add data. how could each widget values in the main form be accessed? i am new to gtk and glade, i managed to get rid of most of the errors.


Ordinarily you would use GtkBuilder like Ethan said. As far as I know, dynamically-created widgets can't be so easily looked-up. I'd just pass a small array of pointers to the modules that need them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号