lua-users home
lua-l archive

lgi / gtk : how to create a button from stock ?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

I'm wondering if it's possible to create a button using "Lua syntaxe".
I mean, for label, I can use the following code :

child = Gtk.Button{
label = "_hello",
use_underline = true
}

but is it a way to do do te same to create an stock based button ?

I know for Gtk.ToolButton, it's working by setting stock_id, but I didn't find equivalent for Gtk.Button ...

Thanks

Laurent

AltStyle によって変換されたページ (->オリジナル) /