diff options
author | Guido van Rossum <guido@python.org> | 1998-03-20 20:45:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-20 20:45:49 (GMT) |
commit | c457048744736201df6b2d796e8ead86ad63a320 (patch) | |
tree | 88df1380d8973b617400aa979266bf9cbbbad0f8 /Lib/lib-tk/tkFileDialog.py | |
parent | 6f73c1a2ac6aaca09aa51a30265d1eea5deb8485 (diff) | |
download | cpython-c457048744736201df6b2d796e8ead86ad63a320.zip cpython-c457048744736201df6b2d796e8ead86ad63a320.tar.gz cpython-c457048744736201df6b2d796e8ead86ad63a320.tar.bz2 |
Give in to the tab police.
Diffstat (limited to 'Lib/lib-tk/tkFileDialog.py')
-rw-r--r-- | Lib/lib-tk/tkFileDialog.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/lib-tk/tkFileDialog.py b/Lib/lib-tk/tkFileDialog.py index e0d5ae5..e07e5d0 100644 --- a/Lib/lib-tk/tkFileDialog.py +++ b/Lib/lib-tk/tkFileDialog.py @@ -41,14 +41,14 @@ class _Dialog(Dialog): pass def _fixresult(self, widget, result): - if result: - # keep directory and filename until next time + if result: + # keep directory and filename until next time import os - path, file = os.path.split(result) - self.options["initialdir"] = path - self.options["initialfile"] = file + path, file = os.path.split(result) + self.options["initialdir"] = path + self.options["initialfile"] = file self.filename = result # compatibility - return result + return result # |