Re: file dialog changes

CAB via Tkinter-discuss <[email protected]> Thu, 23 Feb 2017 14:27:42 +0000 (UTC)
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
Thanks for looking into this, Emiliano!
But this is where things get weird.  Both versions appear to be running variants of Tcl/Tk 8.5.  The "old" version is 8.5.2, whereas the "new" one is 8.5.15.  The simpler dialog thus appears to be either a bug in the newer versions or a feature that was consciously chosen by the developers.
Now, here is something fun.  The application I use to freeze my code is PyInstaller.  This writes everything needed for my app in a folder that I can distribute.  In that folder, I see subfolders called "tk" and "tcl", as well as files called "_tkinter.pyd", "tcl85.dll" and "tk85.dll".  If I freeze using the new Python and then replace those five items with the same items that were included in from an older Pytinstaller session, I get my dialogs back.
For now, this is the solution that I'm going to use.  I'll post if I find problems, and I'll keep my fingers crossed that eventually Anaconda will distribute Tcl/Tk 8.6.3+.
Best,Chad


      From: Emiliano Gavilan <[email protected]>
 To: CAB <[email protected]> 
Cc: "[email protected]" <[email protected]>
 Sent: Thursday, February 23, 2017 5:54 AM
 Subject: Re: [Tkinter-discuss] file dialog changes
   
The "problem" seems to be Tcl/Tk tip 432 ( http://www.tcl.tk/cgi-bin/tct/tip/432 ).
Apparently your "new" installation provides an older version of Tk. You need Tcl/Tk 8.6.3 or newer to see the modern dialogs.

Regards
Emiliano


2017-02-22 11:28 GMT-03:00 CAB via Tkinter-discuss <[email protected]>:

Hi, All,
I have been happily developing applications in a Win32/Python 2.7 environment for years, now.  I recently decided I needed to update multiple python packages, so I installed Anaconda on my Win7 computer.  Everything is more or less fine (once I dealt with some backward compatibility issues), but I noticed that the file dialogs called by tkinter are different now.  Here is what askopenfilename used to look like:I like it!
But here is the new version:Blech!
I have googled the bejeezus out of this, but I can't find an explanation for the difference.  I think it must boil down to differences in Tk/Tcl, or a setting therein, or possibly pywin32.  But I just haven't been able to figure it out.  Obviously, I'd like to go back to the old appearance.
If anyone has any suggestions to fix this problem, I would be most appreciative.
Best,Chad

______________________________ _________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/ mailman/listinfo/tkinter- discuss

_______________________________________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss
image.png (image/png, 52.4 KB) - not displayed
image.png (image/png, 132.8 KB) - not displayed