Class: Tk::Tile::Treeview
Instance Method Summary collapse
Instance Method Details
#clear ⇒ Object
607 608 609 |
# File 'lib/drx/tk/app.rb', line 607 def clear children('').each { |i| delete i } end |
#get_selection ⇒ Object
601 602 603 |
# File 'lib/drx/tk/app.rb', line 601 def get_selection selection[0].text end |
#has_selection? ⇒ Boolean
604 605 606 |
# File 'lib/drx/tk/app.rb', line 604 def has_selection? not selection.empty? end |