Perl/Tk: $widget = $parent->Widget( [ option => value ] )
Ruby: widget = TkWidget.new(parent, option-hash)
widget = TkWidget.new(parent) { code block }
|
You may not need to save the returned value of the newly created
widget, but it's there if you do. Don't forget to pack a widget (or
use one of the other geometry calls), or it won't show up.