Class: Tk::Tile::Treeview

Inherits:
Object show all
Defined in:
lib/drx/tk/app.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



607
608
609
# File 'lib/drx/tk/app.rb', line 607

def clear
  children('').each { |i| delete i }
end

#get_selectionObject



601
602
603
# File 'lib/drx/tk/app.rb', line 601

def get_selection
  selection[0].text
end

#has_selection?Boolean

Returns:

  • (Boolean)


604
605
606
# File 'lib/drx/tk/app.rb', line 604

def has_selection?
  not selection.empty?
end