[](*args)
click to toggle source
def [](*args)
self.value[*args]
end
[]=(*args)
click to toggle source
def []=(*args)
val = args.pop
str = self.value
str[*args] = val
self.value = str
val
end
bbox(index)
click to toggle source
def bbox(index)
list(tk_send_without_enc('bbox', index))
end
cursor()
click to toggle source
def cursor
number(tk_send_without_enc('index', 'insert'))
end
cursor=(index)
click to toggle source
def cursor=(index)
tk_send_without_enc('icursor', index)
index
end
delete(first, last=None)
click to toggle source
def delete(first, last=None)
tk_send_without_enc('delete', first, last)
self
end
dragto(pos)
click to toggle source
def dragto(pos)
tk_send_without_enc('scan', 'dragto', pos)
self
end
get()
click to toggle source
icursor()
click to toggle source
icursor=(index)
click to toggle source
index(idx)
click to toggle source
def index(idx)
number(tk_send_without_enc('index', idx))
end
insert(pos,text)
click to toggle source
def insert(pos,text)
tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
self
end
invoke_validate()
click to toggle source
def invoke_validate
bool(tk_send_without_enc('validate'))
end
mark(pos)
click to toggle source
def mark(pos)
tk_send_without_enc('scan', 'mark', pos)
self
end
selection_adjust(index)
click to toggle source
def selection_adjust(index)
tk_send_without_enc('selection', 'adjust', index)
self
end
selection_clear()
click to toggle source
def selection_clear
tk_send_without_enc('selection', 'clear')
self
end
selection_from(index)
click to toggle source
def selection_from(index)
tk_send_without_enc('selection', 'from', index)
self
end
selection_present()
click to toggle source
def selection_present()
bool(tk_send_without_enc('selection', 'present'))
end
selection_range(s, e)
click to toggle source
def selection_range(s, e)
tk_send_without_enc('selection', 'range', s, e)
self
end
selection_to(index)
click to toggle source
def selection_to(index)
tk_send_without_enc('selection', 'to', index)
self
end
set(val)
click to toggle source
validate(mode = nil)
click to toggle source
def validate(mode = nil)
if mode
configure 'validate', mode
else
invoke_validate
end
end
value()
click to toggle source
def value
_fromUTF8(tk_send_without_enc('get'))
end
value=(val)
click to toggle source
def value= (val)
tk_send_without_enc('delete', 0, 'end')
tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
val
end