go-gtk
go-gtk copied to clipboard
How do I call widget-specific functions when using the builder?
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?
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?
Currently, not have helper.