[Tkinter-discuss] file dialog changes

CAB cabraut at yahoo.com
Thu Feb 23 09:27:42 EST 2017


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 <emilianogavilan at gmail.com>
 To: CAB <cabraut at yahoo.com> 
Cc: "tkinter-discuss at python.org" <tkinter-discuss at python.org>
 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 <tkinter-discuss at python.org>:

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
Tkinter-discuss at python.org
https://mail.python.org/ mailman/listinfo/tkinter- discuss





   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20170223/7c33efa9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 53621 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20170223/7c33efa9/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 136000 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20170223/7c33efa9/attachment-0003.png>


More information about the Tkinter-discuss mailing list