From don.rozenberg at gmail.com Fri Nov 6 00:52:08 2020 From: don.rozenberg at gmail.com (Donald Rozenberg) Date: Thu, 5 Nov 2020 21:52:08 -0800 Subject: [Tkinter-discuss] How to install jpeg support in Tkinter Message-ID: Hi, I am looking for a way to install Img in Windows 10 in such a way that the image support particularly for jpegs is available to the Tcl/Tk included in Tkinter. I have written a programming tool called PAGE in Tcl/Tk that is called by Tk.eval. That tool would be more effective if it could support jpegs. In Linux I can install the package libtk-img and then Tkinter seems able to support jpegs.? I don't know how to make a similar installation in Windows. PAGE is a programming tool available from SourceForge and has enjoyed 50,000 downloads this year. Most of those dowloads are for the windows version. Treating PAGE as a Tcl program within a Tkinter wrapper is a new idea which greatly simplifies user installation but suffers from the disadvantage that users cannot use jpeg images for button widgets, menu entries, notebook widgets, etc.. Hence my appeal. I admit that I know little about Windows. Regards, Don -- Don Rozenberg 707-882-3601 don.rozenberg at gmail.com From klappnase at web.de Sat Nov 7 07:05:57 2020 From: klappnase at web.de (Michael Lange) Date: Sat, 7 Nov 2020 13:05:57 +0100 Subject: [Tkinter-discuss] How to install jpeg support in Tkinter In-Reply-To: References: Message-ID: <20201107130557.c246c7bc94a15a6ad8da627b@web.de> Hi, On Thu, 5 Nov 2020 21:52:08 -0800 Donald Rozenberg wrote: > Hi, > > I am looking for a way to install Img in Windows 10 in such a way that > the image support particularly for jpegs is available to the Tcl/Tk > included in Tkinter. > > I have written a programming tool called PAGE in Tcl/Tk that is called > by Tk.eval. That tool would be more effective if it could support > jpegs. In Linux I can install the package libtk-img and then Tkinter > seems able to support jpegs.? I don't know how to make a similar > installation in Windows. I haven't tried myself, but I believe downloading the appropriate version (32/64 bit) from https://sourceforge.net/projects/tkimg/files/tkimg/1.4/tkimg%201.4.11/ , unpacking the .zip archive and then copying the Img1.4.11 folder into your Python install's Tcl directory should do the trick. If you want to put tkimg somewhere else, for example into your own program's path, doing something like self.tk.call('lappend', 'auto_path', '') before calling "package require Img" should work, too. Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Even historians fail to learn from history -- they repeat the same mistakes. -- John Gill, "Patterns of Force", stardate 2534.7 From claird at phaseit.net Sat Nov 7 18:04:23 2020 From: claird at phaseit.net (Cameron Laird) Date: Sat, 7 Nov 2020 17:04:23 -0600 Subject: [Tkinter-discuss] How to install jpeg support in Tkinter In-Reply-To: <20201107130557.c246c7bc94a15a6ad8da627b@web.de> References: <20201107130557.c246c7bc94a15a6ad8da627b@web.de> Message-ID: I'm with Michael: that is, while I don't have a Win* desktop configured at the moment to verify his directions, the configuration you seek, Donald, should be no more difficult than he describes. We *do* need to document this somewhere accessible ... Cameron Laird, vice president We make computers work for people. On Sat, Nov 7, 2020 at 6:06 AM Michael Lange wrote: > Hi, > > On Thu, 5 Nov 2020 21:52:08 -0800 > Donald Rozenberg wrote: > > > Hi, > > > > I am looking for a way to install Img in Windows 10 in such a way that > > the image support particularly for jpegs is available to the Tcl/Tk > > included in Tkinter. > > > > I have written a programming tool called PAGE in Tcl/Tk that is called > > by Tk.eval. That tool would be more effective if it could support > > jpegs. In Linux I can install the package libtk-img and then Tkinter > > seems able to support jpegs. I don't know how to make a similar > > installation in Windows. > > I haven't tried myself, but I believe downloading the appropriate version > (32/64 bit) from > > https://sourceforge.net/projects/tkimg/files/tkimg/1.4/tkimg%201.4.11/ > > , unpacking the .zip archive and then copying the Img1.4.11 folder into > your Python install's Tcl directory should do the trick. > > If you want to put tkimg somewhere else, for example into your own > program's path, doing something like > > self.tk.call('lappend', 'auto_path', '') > > before calling "package require Img" should work, too. > > Best regards > > Michael > > > .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. > > Even historians fail to learn from history -- they repeat the same > mistakes. > -- John Gill, "Patterns of Force", stardate 2534.7 > _______________________________________________ > 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: From mark at markroseman.com Sun Nov 8 21:23:37 2020 From: mark at markroseman.com (Mark Roseman) Date: Sun, 8 Nov 2020 18:23:37 -0800 Subject: [Tkinter-discuss] How to install jpeg support in Tkinter In-Reply-To: References: Message-ID: <510AD19D-379C-4BD0-AA75-A9308C407275@markroseman.com> Don, another option to allow use of JPEG?s through Tkinter might to use Pillow (https://pypi.org/project/Pillow/ ) Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: