home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.2)
-
- from Tkinter import *
- import os
-
- class Dialog:
- command = None
-
- def __init__(self, master = None, **options):
- if TkVersion < 4.2000000000000002:
- 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
-
-
- def _fixresult(self, widget, result):
- return result
-
-
- def show(self, **options):
- for k, v in options.items():
- self.options[k] = v
-
- self._fixoptions()
- w = Frame(self.master)
-
- try:
- s = apply(w.tk.call, (self.command,) + w._options(self.options))
- s = self._fixresult(w, s)
- finally:
-
- try:
- w.destroy()
- except:
- pass
-
-
- return s
-
-
-