mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +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
|
return status
|
||||||
def lower(self, belowThis=None):
|
def lower(self, belowThis=None):
|
||||||
self.tk.call('lower', self._w, belowThis)
|
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):
|
def selection_clear(self):
|
||||||
self.tk.call('selection', 'clear', self._w)
|
self.tk.call('selection', 'clear', self._w)
|
||||||
def selection_get(self, type=None):
|
def selection_get(self, type=None):
|
||||||
|
|
|
@ -181,6 +181,14 @@ class Misc:
|
||||||
return status
|
return status
|
||||||
def lower(self, belowThis=None):
|
def lower(self, belowThis=None):
|
||||||
self.tk.call('lower', self._w, belowThis)
|
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):
|
def selection_clear(self):
|
||||||
self.tk.call('selection', 'clear', self._w)
|
self.tk.call('selection', 'clear', self._w)
|
||||||
def selection_get(self, type=None):
|
def selection_get(self, type=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue