Package: gtk

Function gtk-widget-new

Lambda List

gtk-widget-new (gtype &rest args)

Arguments

gtype -- the g-type type of the widget to create
args -- pairs of the property keyword and value

Return Value

A new gtk-widget object of gtype type.

Details

This is a function for creating a widget and setting its properties in one go. This function is equivalent to the g-object-new function.

Example

Create a left-aligned label.
(gtk-widget-new "GtkLabel" :label "Hello World" :xalign 0.0)    
 

See also

2021-9-16