mirror of https://github.com/python/cpython
added option interface
This commit is contained in:
parent
971dc53f0e
commit
780044f27a
|
@ -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…
Reference in New Issue