mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Give in to the tab police.
This commit is contained in:
parent
6f73c1a2ac
commit
c457048744
6 changed files with 286 additions and 276 deletions
|
@ -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
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue