Method: Tk::Vu::Dial#get_label
- Defined in:
- lib/tkextlib/vu/dial.rb
#get_label(val = nil) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/tkextlib/vu/dial.rb', line 54 def get_label(val=nil) if val tk_call(@path, 'label', val) else ret = [] lst = simplelist(tk_call(@path, 'label')) while lst.size > 0 ret << ([num_or_str(lst.shift)] << lst.shift) end end end |