Re: How to install jpeg support in Tkinter
Cameron Laird <[email protected]> Sat, 7 Nov 2020 17:04:23 -0600
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <CAC7gT6i-F-QX33C9NKdSm5fGzM7A8h=V-LXKtDxg4TR9q_kRzQ@mail.gmail.com> |
--===============0577158460682974053== Content-Type: multipart/alternative; boundary="00000000000041335905b38c5a40" --00000000000041335905b38c5a40 Content-Type: text/plain; charset="UTF-8" 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 <[email protected]> wrote: > Hi, > > On Thu, 5 Nov 2020 21:52:08 -0800 > Donald Rozenberg <[email protected]> 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', '<path-to-the-Img1.4.11-folder>') > > 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 > [email protected] > https://mail.python.org/mailman/listinfo/tkinter-discuss > --00000000000041335905b38c5a40 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br clear=3D"all"><div><div dir=3D"ltr" class=3D"gmail_sig= nature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr= "><div dir=3D"ltr"><div>I'm with Michael:=C2=A0 that is, while I don= 9;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 des= cribes.=C2=A0 We <i>do</i> need to document this somewhere=C2=A0accessible = ...</div><div><br></div><div><br></div><div><br></div><div><br></div><div d= ir=3D"ltr"><span style=3D"font-size:12.8px">Cameron Laird, vice president</= span><br></div><div dir=3D"ltr"><img src=3D"http://phaseit.net/images/phase= -it-logo-web.jpg" style=3D"font-size:12.8px"></div><div><font size=3D"4" co= lor=3D"#ff0000">We make computers work for people.</font></div></div></div>= </div></div></div><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"= class=3D"gmail_attr">On Sat, Nov 7, 2020 at 6:06 AM Michael Lange <<a h= ref=3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br> <br> On Thu, 5 Nov 2020 21:52:08 -0800<br> Donald Rozenberg <<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>> wrote:<br> <br> > Hi,<br> ><br> > I am looking for a way to install Img in Windows 10 in such a way that= <br> > the image support particularly for jpegs is available to the Tcl/Tk<br= > > included in Tkinter.<br> ><br> > I have written a programming tool called PAGE in Tcl/Tk that is called= <br> > by Tk.eval. That tool would be more effective if it could support<br> > jpegs. In Linux I can install the package libtk-img and then Tkinter<b= r> > seems able to support jpegs.=C2=A0 I don't know how to make a simi= lar<br> > installation in Windows.<br> <br> I haven't tried myself, but I believe downloading the appropriate versi= on<br> (32/64 bit) from<br> <br> <a href=3D"https://sourceforge.net/projects/tkimg/files/tkimg/1.4/tkimg%201= .4.11/" rel=3D"noreferrer" target=3D"_blank">https://sourceforge.net/projec= ts/tkimg/files/tkimg/1.4/tkimg%201.4.11/</a><br> <br> , unpacking the .zip archive and then copying the Img1.4.11 folder into<br> your Python install's Tcl directory should do the trick.<br> <br> If you want to put tkimg somewhere else, for example into your own<br> program's path, doing something like<br> <br> self.tk.call('lappend', 'auto_path', '<path-to-the-I= mg1.4.11-folder>')<br> <br> before calling "package require Img" should work, too.<br> <br> Best regards<br> <br> Michael<br> <br> <br> .-.. .. ...- .=C2=A0 =C2=A0.-.. --- -. --.=C2=A0 =C2=A0.- -. -..=C2=A0 =C2= =A0.--. .-. --- ... .--. . .-.<br> <br> Even historians fail to learn from history -- they repeat the same<br> mistakes.<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- John Gill, "= ;Patterns of Force", stardate 2534.7<br> _______________________________________________<br> Tkinter-discuss mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Tkinter-dis= [email protected]</a><br> <a href=3D"https://mail.python.org/mailman/listinfo/tkinter-discuss" rel=3D= "noreferrer" target=3D"_blank">https://mail.python.org/mailman/listinfo/tki= nter-discuss</a><br> </blockquote></div> --00000000000041335905b38c5a40-- --===============0577158460682974053== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Tkinter-discuss mailing list [email protected] https://mail.python.org/mailman/listinfo/tkinter-discuss --===============0577158460682974053==--