Module: TkWidgetFactory::WidgetEnhancer

Defined in:
lib/a-tkcommons.rb

Instance Method Summary collapse

Instance Method Details

#hint(_hint = nil) ⇒ Object



2211
2212
2213
2214
# File 'lib/a-tkcommons.rb', line 2211

def hint(_hint=nil)
  Tk::BWidget::DynamicHelp::add(self, 'text'=>_hint) if _hint
  self
end

#hint=(_hint = nil) ⇒ Object



2207
2208
2209
# File 'lib/a-tkcommons.rb', line 2207

def hint=(_hint=nil)
  hint(_hint)
end