From Vasilis.Vlachoudis at cern.ch Thu Oct 10 05:26:37 2019 From: Vasilis.Vlachoudis at cern.ch (Vasilis Vlachoudis) Date: Thu, 10 Oct 2019 09:26:37 +0000 Subject: [Tkinter-discuss] ttk scrollbar add top/bottom buttons Message-ID: <0BC70B5D93E054469872FFD0FE07220E02C4FE23CB@CERNXCHG53.cern.ch> Hi all, I am trying to add two buttons in the ttk scrollbar (in addition to the existing up/down) move to top, move to bottom, which I need when I open huge lists. Is it possible? I know that I can create my own Frame include the scrollbar and two buttons, but I believe it would be more elegant if I can make a custom scrollbar for this. Thanks in advance Vasilis -------------- next part -------------- An HTML attachment was scrubbed... URL: From Vasilis.Vlachoudis at cern.ch Tue Oct 15 12:02:54 2019 From: Vasilis.Vlachoudis at cern.ch (Vasilis Vlachoudis) Date: Tue, 15 Oct 2019 16:02:54 +0000 Subject: [Tkinter-discuss] Detecting tk/tcl include library path Message-ID: <0BC70B5D93E054469872FFD0FE07220E02C4FFAD4B@CERNXCHG54.cern.ch> Hi all, how can I detect in a makefile the path of the include C header files of tk/tcl? There is no tk-config program to return it like other packages. I see that every system puts the C header files in a different location like /usr/include/tk /usr/include/tk8.6 /sw/include/tcl8.6 /opt/local/include Thanks in advance Vasilis -------------- next part -------------- An HTML attachment was scrubbed... URL: From emilianogavilan at gmail.com Tue Oct 15 13:52:32 2019 From: emilianogavilan at gmail.com (E) Date: Tue, 15 Oct 2019 14:52:32 -0300 Subject: [Tkinter-discuss] Detecting tk/tcl include library path In-Reply-To: <0BC70B5D93E054469872FFD0FE07220E02C4FFAD4B@CERNXCHG54.cern.ch> References: <0BC70B5D93E054469872FFD0FE07220E02C4FFAD4B@CERNXCHG54.cern.ch> Message-ID: <89e0f634-e312-1554-1e31-a0ba464c12ae@gmail.com> El 15/10/2019 a las 01:02 p. m., Vasilis Vlachoudis escribi?: > Hi all, > > how can I detect in a makefile the path of the include C header files of > tk/tcl? Two ways. > There is no tk-config program to return it like other package. In the default configuration, both Tcl and Tk provides .pc files to use with pkg-config, who became the de-facto standard for registering package configuration and compilation options. Try $ pkg-config --cflags tk -I/usr/local/include The other option is to use the information recorded in the Tcl binary. $ echo 'puts [tcl::pkgconfig get includedir,install] | tclsh' /usr/local/include since both Tcl and Tk are usually installed in the same --prefix Regards Emiliano > I see that every system puts the C header files in a different location like > /usr/include/tk > /usr/include/tk8.6 > /sw/include/tcl8.6 > /opt/local/include > > Thanks in advance > Vasilis > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > https://mail.python.org/mailman/listinfo/tkinter-discuss > From Vasilis.Vlachoudis at cern.ch Wed Oct 16 03:21:14 2019 From: Vasilis.Vlachoudis at cern.ch (Vasilis Vlachoudis) Date: Wed, 16 Oct 2019 07:21:14 +0000 Subject: [Tkinter-discuss] Detecting tk/tcl include library path In-Reply-To: <89e0f634-e312-1554-1e31-a0ba464c12ae@gmail.com> References: <0BC70B5D93E054469872FFD0FE07220E02C4FFAD4B@CERNXCHG54.cern.ch>, <89e0f634-e312-1554-1e31-a0ba464c12ae@gmail.com> Message-ID: <0BC70B5D93E054469872FFD0FE07220E02C4FFF082@CERNXCHG54.cern.ch> Great! Many thanks both work nicely on linux. I will test it on other OS and versions Vasilis ________________________________________ From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern.ch at python.org] on behalf of E [emilianogavilan at gmail.com] Sent: Tuesday, October 15, 2019 19:52 To: tkinter-discuss at python.org Subject: Re: [Tkinter-discuss] Detecting tk/tcl include library path El 15/10/2019 a las 01:02 p. m., Vasilis Vlachoudis escribi?: > Hi all, > > how can I detect in a makefile the path of the include C header files of > tk/tcl? Two ways. > There is no tk-config program to return it like other package. In the default configuration, both Tcl and Tk provides .pc files to use with pkg-config, who became the de-facto standard for registering package configuration and compilation options. Try $ pkg-config --cflags tk -I/usr/local/include The other option is to use the information recorded in the Tcl binary. $ echo 'puts [tcl::pkgconfig get includedir,install] | tclsh' /usr/local/include since both Tcl and Tk are usually installed in the same --prefix Regards Emiliano > I see that every system puts the C header files in a different location like > /usr/include/tk > /usr/include/tk8.6 > /sw/include/tcl8.6 > /opt/local/include > > Thanks in advance > Vasilis > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > https://mail.python.org/mailman/listinfo/tkinter-discuss > _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss at python.org https://mail.python.org/mailman/listinfo/tkinter-discuss