class RUI::GuiBuilder::Label
A label.
The label text is specified by the text
attribute.
A buddy
attribute can also be specified as a widget id. The widget with the given id will be set as the buddy of this label as GUI construction time.
Public Instance Methods
create_element(window, parent, desc)
click to toggle source
# File lib/rui/toolkits/qtbase/gui_builder.rb, line 229 def create_element(window, parent, desc) label = Qt::Label.new(desc.opts[:text].to_s, window) setup_widget(label, window, parent, desc) if desc.opts[:buddy] window.buddies[label] = desc.opts[:buddy] end label end