X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/lib-tk
usr
/
lib64
/
python2.7
/
lib-tk
/
ðŸ“
..
📄
Canvas.py
(7.29 KB)
📄
Canvas.pyc
(15.2 KB)
📄
Canvas.pyo
(15.2 KB)
📄
Dialog.py
(1.53 KB)
📄
Dialog.pyc
(1.88 KB)
📄
Dialog.pyo
(1.88 KB)
📄
FileDialog.py
(8.62 KB)
📄
FileDialog.pyc
(9.49 KB)
📄
FileDialog.pyo
(9.49 KB)
📄
FixTk.py
(2.95 KB)
📄
FixTk.pyc
(2.04 KB)
📄
FixTk.pyo
(1.98 KB)
📄
ScrolledText.py
(1.79 KB)
📄
ScrolledText.pyc
(2.6 KB)
📄
ScrolledText.pyo
(2.6 KB)
📄
SimpleDialog.py
(3.64 KB)
📄
SimpleDialog.pyc
(4.24 KB)
📄
SimpleDialog.pyo
(4.24 KB)
📄
Tix.py
(75.41 KB)
📄
Tix.pyc
(93.84 KB)
📄
Tix.pyo
(93.84 KB)
📄
Tkconstants.py
(1.46 KB)
📄
Tkconstants.pyc
(2.19 KB)
📄
Tkconstants.pyo
(2.19 KB)
📄
Tkdnd.py
(11.22 KB)
📄
Tkdnd.pyc
(12.52 KB)
📄
Tkdnd.pyo
(12.52 KB)
📄
Tkinter.py
(156.85 KB)
📄
Tkinter.pyc
(195.5 KB)
📄
Tkinter.pyo
(195.5 KB)
ðŸ“
test
📄
tkColorChooser.py
(1.74 KB)
📄
tkColorChooser.pyc
(1.39 KB)
📄
tkColorChooser.pyo
(1.39 KB)
📄
tkCommonDialog.py
(1.38 KB)
📄
tkCommonDialog.pyc
(1.48 KB)
📄
tkCommonDialog.pyo
(1.48 KB)
📄
tkFileDialog.py
(5.59 KB)
📄
tkFileDialog.pyc
(5.04 KB)
📄
tkFileDialog.pyo
(5.04 KB)
📄
tkFont.py
(6.02 KB)
📄
tkFont.pyc
(7 KB)
📄
tkFont.pyo
(7 KB)
📄
tkMessageBox.py
(3.6 KB)
📄
tkMessageBox.pyc
(3.8 KB)
📄
tkMessageBox.pyo
(3.8 KB)
📄
tkSimpleDialog.py
(7.54 KB)
📄
tkSimpleDialog.pyc
(8.9 KB)
📄
tkSimpleDialog.pyo
(8.9 KB)
📄
ttk.py
(54.86 KB)
📄
ttk.pyc
(61.16 KB)
📄
ttk.pyo
(61.16 KB)
📄
turtle.py
(135.78 KB)
📄
turtle.pyc
(136.31 KB)
📄
turtle.pyo
(136.31 KB)
Editing: tkCommonDialog.py
# base class for tk common dialogues # # this module provides a base class for accessing the common # dialogues available in Tk 4.2 and newer. use tkFileDialog, # tkColorChooser, and tkMessageBox to access the individual # dialogs. # # written by Fredrik Lundh, May 1997 # from Tkinter import * class Dialog: command = None def __init__(self, master=None, **options): # FIXME: should this be placed on the module level instead? if TkVersion < 4.2: raise TclError, "this module requires Tk 4.2 or newer" self.master = master self.options = options if not master and options.get('parent'): self.master = options['parent'] def _fixoptions(self): pass # hook def _fixresult(self, widget, result): return result # hook def show(self, **options): # update instance options for k, v in options.items(): self.options[k] = v self._fixoptions() # we need a dummy widget to properly process the options # (at least as long as we use Tkinter 1.63) w = Frame(self.master) try: s = w.tk.call(self.command, *w._options(self.options)) s = self._fixresult(w, s) finally: try: # get rid of the widget w.destroy() except: pass return s
Upload File
Create Folder