In Files

  • tk/lib/tkextlib/iwidgets/combobox.rb

Class/Module Index [+]

Quicksearch

Tk::Iwidgets::Combobox

Public Instance Methods

clear(component=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 27
def clear(component=None)
  tk_call(@path, 'clear', component)
  self
end
            
delete_entry(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 37
def delete_entry(first, last=None)
  tk_call(@path, 'delete', 'entry', first, last)
  self
end
            
delete_list(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 32
def delete_list(first, last=None)
  tk_call(@path, 'delete', 'list', first, last)
  self
end
            
get_curselection() click to toggle source

scrolledlistbox methods

 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 81
def get_curselection
  tk_call(@path, 'getcurselection')
end
            
get_list_contents(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 42
def get_list_contents(index)
  tk_call(@path, 'get', index)
end
            
insert_entry(idx, *elems) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 51
def insert_entry(idx, *elems)
  tk_call(@path, 'insert', 'entry', idx, *elems)
  self
end
            
insert_list(idx, *elems) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 46
def insert_list(idx, *elems)
  tk_call(@path, 'insert', 'list', idx, *elems)
  self
end
            
justify(dir) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 84
def justify(dir)
  tk_call(@path, 'justify', dir)
  self
end
            
see(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 60
def see(index)
  tk_send_without_enc('see', index)
  self
end
            
selection_anchor(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 64
def selection_anchor(index)
  tk_send_without_enc('selection', 'anchor', index)
  self
end
            
selection_clear(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 68
def selection_clear(first, last=None)
  tk_send_without_enc('selection', 'clear', first, last)
  self
end
            
selection_includes(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 72
def selection_includes(index)
  bool(tk_send_without_enc('selection', 'includes', index))
end
            
selection_set(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 75
def selection_set(first, last=None)
  tk_send_without_enc('selection', 'set', first, last)
  self
end
            
size() click to toggle source

listbox methods

 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 57
def size
  tk_send_without_enc('size').to_i
end
            
sort(*params, &b) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 88
def sort(*params, &b)
  # see 'lsort' man page about params
  if b
    tk_call(@path, 'sort', '-command', proc(&b), *params)
  else
    tk_call(@path, 'sort', *params)
  end
  self
end
            
sort_ascending() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 97
def sort_ascending
  tk_call(@path, 'sort', 'ascending')
  self
end
            
sort_descending() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/combobox.rb, line 101
def sort_descending
  tk_call(@path, 'sort', 'descending')
  self
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.