mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Patch #853488: Add hlist entry_configure and entry_cget methods.
This commit is contained in:
parent
4848557924
commit
433fa69c40
1 changed files with 11 additions and 0 deletions
|
@ -1005,6 +1005,17 @@ class HList(TixWidget):
|
||||||
def item_delete(self, entry, col):
|
def item_delete(self, entry, col):
|
||||||
self.tk.call(self._w, 'item', 'delete', entry, col)
|
self.tk.call(self._w, 'item', 'delete', entry, col)
|
||||||
|
|
||||||
|
def entrycget(self, entry, opt):
|
||||||
|
return self.tk.call(self._w, 'entrycget', entry, opt)
|
||||||
|
|
||||||
|
def entryconfigure(self, entry, cnf={}, **kw):
|
||||||
|
if cnf is None:
|
||||||
|
return _lst2dict(
|
||||||
|
self.tk.split(
|
||||||
|
self.tk.call(self._w, 'entryconfigure', entry)))
|
||||||
|
self.tk.call(self._w, 'entryconfigure', entry,
|
||||||
|
*self._options(cnf, kw))
|
||||||
|
|
||||||
def nearest(self, y):
|
def nearest(self, y):
|
||||||
return self.tk.call(self._w, 'nearest', y)
|
return self.tk.call(self._w, 'nearest', y)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue