mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
added option interface
This commit is contained in:
parent
971dc53f0e
commit
780044f27a
2 changed files with 16 additions and 0 deletions
|
@ -181,6 +181,14 @@ class Misc:
|
|||
return status
|
||||
def lower(self, belowThis=None):
|
||||
self.tk.call('lower', self._w, belowThis)
|
||||
def option_add(self, pattern, value, priority = None):
|
||||
self.tk.call('option', 'add', pattern, priority)
|
||||
def option_clear(self):
|
||||
self.tk.call('option', 'clear')
|
||||
def option_get(self, name, className):
|
||||
return self.tk.call('option', 'get', self._w, name, className)
|
||||
def option_readfile(self, fileName, priority = None):
|
||||
self.tk.call('option', 'readfile', fileName, priority)
|
||||
def selection_clear(self):
|
||||
self.tk.call('selection', 'clear', self._w)
|
||||
def selection_get(self, type=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue