go-gtk icon indicating copy to clipboard operation
go-gtk copied to clipboard

How do I call widget-specific functions when using the builder?

Open ccoenen opened this issue 9 years ago • 2 comments

i'm looking into the builder-example at the moment, and let's suppose I want to call window.Resize(100,100)

right now, this fails with window.Resize undefined (type *gtk.Widget has no field or method Resize) because we only got a widget from the builder. I would like to somehow cast or assert this to be an actual window. I couldn't find how this is done. Is there a way?

ccoenen avatar Mar 07 '15 01:03 ccoenen

I'm having the same problem...

What is the appropriate way to go from builder.GetObject("my_checkbutton") --> gtk.ToggleButton?

Is there any helpers for this?

andreas-jonsson avatar Sep 15 '16 10:09 andreas-jonsson

Currently, not have helper.

mattn avatar Sep 16 '16 00:09 mattn