From charras at me.com Sun Apr 3 06:03:08 2011 From: charras at me.com (Guido Carballo-Guerrero) Date: Sun, 03 Apr 2011 01:03:08 -0300 Subject: [Tkinter-discuss] Python tutorial Message-ID: <60C82459-1944-4386-AADB-405CE348EF1A@me.com> I know this is a Tkinter mailing list, but I will like to share with you this tutorial, which will have some Tkinter as well. It's a project that I just start, so any comment is very much appreciated: http://web.me.com/charras/Python/Welcome.html Guido Carballo From georges.arsouze at gmail.com Tue Apr 5 08:57:08 2011 From: georges.arsouze at gmail.com (Georges Arsouze) Date: Tue, 5 Apr 2011 08:57:08 +0200 Subject: [Tkinter-discuss] transient Message-ID: Hi I'm working with Python 3 on mac os 10.6 the transient window doesn't works (a transient toplevel is always drawn on the top of its parent and is hidden if the parent is iconified or withdrawn) from tkinter import * "La fen?tre m?re" fenetre=Tk() fenetre.title("Fen?tre m?re") Label(fenetre,text="Il s'agit ici de la fen?tre m?re").pack(pady=10) "Une premi?re fen?tre fille" "Fen?tre totalement ind?pendante, seulement la destruction de sa m?re entraine sa propre destruction" fille1=Toplevel(fenetre) fille1.title("Fille 1 (ind?pendante)") Label(fille1,text="Fen?tre fille totalement ind?pendante").pack(padx=10,pady=10) "Une seconde fille" "Fen?tre de type transient (d?ssin?e au dessus de sa m?re, cach?e si la m?re est iconifi?e ou retir?e" fille2=Toplevel(fenetre) fille2.title("Fille 2 (de type transient)") Label(fille2,text="Fen?tre fille de type transient").pack(padx=10,pady=10) fille2.transient(fenetre) # transient ne marche pas "Une troisi?me fille" "Fen?tre ne pouvant ?tre ni boug?e, ni retaill?e" fille3=Toplevel(fenetre) Label(fille3,text="Fen?tre fille sans d?coration",bg='blue', fg='white').pack(fill=BOTH,expand=YES) fille3.overrideredirect(1) fille3.geometry("200x70+150+400") fenetre.mainloop() Can you help me Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From pyclutter at gmail.com Tue Apr 5 21:46:02 2011 From: pyclutter at gmail.com (craf) Date: Tue, 05 Apr 2011 16:46:02 -0300 Subject: [Tkinter-discuss] Treeview with a single column header Message-ID: <1302032762.5455.5.camel@cristian-desktop> I'm testing the treeview widget, and I want to display data in a single column with a header. My code to do this is: --CODE--------------- import Tkinter import ttk master = Tkinter.Tk() tabla = ttk.Treeview(master, columns=('widgets')) tabla.heading('widgets', text='Item') tabla.pack() tabla.insert('',0,'widgets', text="date1") master.mainloop() ------------------------ The problem is that the title puts me in a second column and the data in the first. Can be done? Regards. Cristian Abarz?a From emilianogavilan at gmail.com Wed Apr 6 22:49:09 2011 From: emilianogavilan at gmail.com (Emiliano =?iso-8859-1?Q?Gavil=E1n?=) Date: Wed, 6 Apr 2011 17:49:09 -0300 Subject: [Tkinter-discuss] Treeview with a single column header Message-ID: <20110406204909.GA19748@merlot.lan> ... > The problem is that the title puts me in a second column and the data in > the first. The 'text' option of the insert method is for the tree column. To insert values on the other columns use the 'values' option, or the set method after the item is inserted. You can also control whether the tree column is shown or not with the 'show' option. --CODE------------------ import Tkinter import ttk master = Tkinter.Tk() # add show=['headings'] to hide the tree column tabla = ttk.Treeview(master, columns=['widgets']) tabla.heading('widgets', text='Item') tabla.pack() item = tabla.insert('', 0, text='In the tree', values=['date1']) # values can be left out and instead use # tabla.set(item, 'widgets', 'date1') master.mainloop() --CODE------------------ Regards Emiliano From pyclutter at gmail.com Wed Apr 6 23:52:46 2011 From: pyclutter at gmail.com (craf) Date: Wed, 06 Apr 2011 18:52:46 -0300 Subject: [Tkinter-discuss] Treeview with a single column header In-Reply-To: <20110406204909.GA19748@merlot.lan> References: <20110406204909.GA19748@merlot.lan> Message-ID: <1302126766.2511.6.camel@cristian-desktop> -----Mensaje original----- De: Emiliano Gavil?n Para: tkinter-discuss at python.org Asunto: Re: [Tkinter-discuss] Treeview with a single column header Fecha: Wed, 6 Apr 2011 17:49:09 -0300 ... > The problem is that the title puts me in a second column and the data in > the first. >The 'text' option of the insert method is for the tree column. To insert >values on the other columns use the 'values' option, or the set method >after the item is inserted. >You can also control whether the tree column is shown or not with the >'show' option. >--CODE------------------ >import Tkinter >import ttk >master = Tkinter.Tk() ># add show=['headings'] to hide the tree column >tabla = ttk.Treeview(master, columns=['widgets']) >tabla.heading('widgets', text='Item') >tabla.pack() >item = tabla.insert('', 0, text='In the tree', values=['date1']) ># values can be left out and instead use ># tabla.set(item, 'widgets', 'date1') >master.mainloop() >--CODE------------------ >Regards >Emiliano Hi Emiliano. Thanks for the information! Regards. Cristian From waynejwerner at gmail.com Wed Apr 13 19:51:59 2011 From: waynejwerner at gmail.com (Wayne Werner) Date: Wed, 13 Apr 2011 12:51:59 -0500 Subject: [Tkinter-discuss] Keep mouse on canvas? Message-ID: Hi, Is there an easy way to keep the mouse inside of a canvas or window? Thanks, Wayne -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cameron at phaseit.net Wed Apr 20 15:29:51 2011 From: Cameron at phaseit.net (Cameron Laird) Date: Wed, 20 Apr 2011 13:29:51 +0000 Subject: [Tkinter-discuss] Tkinter works with PyPy In-Reply-To: <20110420132426.GA19501@lairds.us> References: <20110420132426.GA19501@lairds.us> Message-ID: <20110420132951.GA19737@lairds.us> On Wed, Apr 20, 2011 at 01:24:26PM +0000, Cameron Laird wrote: . . . > http://bit.ly/dFg5g Ugh: sorry for the confusion, folks. Please try http://bit.ly/dFg5gq instead. From Cameron at phaseit.net Wed Apr 20 15:24:26 2011 From: Cameron at phaseit.net (Cameron Laird) Date: Wed, 20 Apr 2011 13:24:26 +0000 Subject: [Tkinter-discuss] Tkinter works with PyPy Message-ID: <20110420132426.GA19501@lairds.us> http://bit.ly/dFg5g From georges.arsouze at gmail.com Fri Apr 29 09:32:30 2011 From: georges.arsouze at gmail.com (Georges Arsouze) Date: Fri, 29 Apr 2011 09:32:30 +0200 Subject: [Tkinter-discuss] Python 3.1 and Tcl/Tk Message-ID: Hi Sorry for my poor english (French people) I'm working under mac os 10.6.7 Python 3.1.3 Tk version 8.4 Idle version 3.1.3 when i try from tkinter import * fenetre=Tk() n=Notebook(fenetre) i obtain tkinter.TclError: can't find package tile On mailing list I have seen that I have TCl/TK 8.5 I install this version in "/Library/Frameworks/*Tcl*.framework/Versions/8.5" I read http://old.nabble.com/How-can-I-tell-Tkinter-where-to-look-for-Tcl-Tk--td28329846.html but i don't understand what i have to do Can you help me 5 (I'm beginning with Python) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From charras at me.com Fri Apr 29 13:50:15 2011 From: charras at me.com (Guido Carballo-Guerrero) Date: Fri, 29 Apr 2011 08:50:15 -0300 Subject: [Tkinter-discuss] Tkinter-discuss Digest, Vol 86, Issue 7 In-Reply-To: References: Message-ID: <37DC2306-2CEC-4743-BAC2-B287EE86A674@me.com> George, I haven't try Python 3.1, I have Python 2.7, but in my case the only way in which I was able to use TCL/TK 8.5 things was when I compile manually Python on my computer. I run on OS X 10.6.7 as well. The way to do that is, you have to download the source file, than once you un-compress it, go to its folder and type: $ ./configure --enable-universalsdk --enable-framework $ make $ make frameworkinstall This should do it for you. With these 3 lines you will compile and install Python, and during the installation Python will configure the latest TCL/TK you have install in your Framework folder. Guido On Apr 29, 2011, at 7:00 AM, tkinter-discuss-request at python.org wrote: > Send Tkinter-discuss mailing list submissions to > tkinter-discuss at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/tkinter-discuss > or, via email, send a message with subject or body 'help' to > tkinter-discuss-request at python.org > > You can reach the person managing the list at > tkinter-discuss-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tkinter-discuss digest..." > Today's Topics: > > 1. Python 3.1 and Tcl/Tk (Georges Arsouze) > > From: Georges Arsouze > Date: April 29, 2011 4:32:30 AM GMT-03:00 > To: tkinter-discuss at python.org > Subject: [Tkinter-discuss] Python 3.1 and Tcl/Tk > > > Hi > Sorry for my poor english (French people) > > I'm working under mac os 10.6.7 > Python 3.1.3 Tk version 8.4 Idle version 3.1.3 > > when i try > from tkinter import * > fenetre=Tk() > n=Notebook(fenetre) > > i obtain > tkinter.TclError: can't find package tile > > On mailing list I have seen that I have TCl/TK 8.5 > I install this version in "/Library/Frameworks/Tcl.framework/Versions/8.5" > > I read http://old.nabble.com/How-can-I-tell-Tkinter-where-to-look-for-Tcl-Tk--td28329846.html > > but i don't understand what i have to do > > Can you help me 5 (I'm beginning with Python) > > Regards > > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steven.Oldner at LA.GOV Fri Apr 29 15:44:54 2011 From: Steven.Oldner at LA.GOV (Steve Oldner) Date: Fri, 29 Apr 2011 08:44:54 -0500 Subject: [Tkinter-discuss] Python tutorial Message-ID: <9184B5BB5F0EE2438C877DF95AD93B510F80942CC2@MAILMBX03.MAIL.LA.GOV> Interesting site, I like it. A different approach to writing tutorials. I did find it a bit hard to read the text on the pages, but I was using IE8 and my eyes aren't that good any more. Keep it up! Steven Oldner State of Louisiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From georges.arsouze at gmail.com Fri Apr 29 17:27:57 2011 From: georges.arsouze at gmail.com (Georges Arsouze) Date: Fri, 29 Apr 2011 17:27:57 +0200 Subject: [Tkinter-discuss] Python 3 and Tcl/tk on mac os Message-ID: Hi I'm sorry. The is something i don't understand I have the latest version for mac os 10.6.7 of TCl/TK on my computer (version 8.6.0.0b5) (in Library/Frameworks/Tcl.framework and Library/Frameworks/Tk.framework) I want to use this version of TCL/TK with Python 3.1 Can you explain me what source file (python 3.1) i must download and how I compile it manually so that the installation goes in Library/Frameworks/Python.framework) Sorry for my englis et my user level about mac os x installation regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From nad at acm.org Fri Apr 29 23:57:19 2011 From: nad at acm.org (Ned Deily) Date: Fri, 29 Apr 2011 14:57:19 -0700 Subject: [Tkinter-discuss] Python 3.1 and Tcl/Tk References: Message-ID: In article , Georges Arsouze wrote: > I'm working under mac os 10.6.7 > Python 3.1.3 Tk version 8.4 Idle version 3.1.3 > > when i try > from tkinter import * > fenetre=Tk() > n=Notebook(fenetre) > > i obtain > tkinter.TclError: can't find package tile > > On mailing list I have seen that I have TCl/TK 8.5 > I install this version in "/Library/Frameworks/*Tcl*.framework/Versions/8.5" > > I read > http://old.nabble.com/How-can-I-tell-Tkinter-where-to-look-for-Tcl-Tk--td28329 > 846.html > > but i don't understand what i have to do > > Can you help me 5 (I'm beginning with Python) If you are using a Python 3.1 installer from python.org, at the moment only Aqua Tcl/Tk 8.4 is supported, not 8.5. There is a more recent Python 3.2 installer that does support 8.5 but beware that there are various issues with Tk on Mac OS X. There are more details at this web page: http://www.python.org/download/mac/tcltk/ -- Ned Deily, nad at acm.org From nad at acm.org Sat Apr 30 00:27:01 2011 From: nad at acm.org (Ned Deily) Date: Fri, 29 Apr 2011 15:27:01 -0700 Subject: [Tkinter-discuss] Python 3 and Tcl/tk on mac os References: Message-ID: In article , Georges Arsouze wrote: > I'm sorry. The is something i don't understand > I have the latest version for mac os 10.6.7 of TCl/TK on my computer > (version 8.6.0.0b5) (in Library/Frameworks/Tcl.framework > and Library/Frameworks/Tk.framework) > I want to use this version of TCL/TK with Python 3.1 > Can you explain me what source file (python 3.1) i must download and how I > compile it manually so that the installation goes in > Library/Frameworks/Python.framework) I do not recommend that you try to build with Tcl/Tk 8.6. As far as I know, it has received very little, if any exposure, with Python on OS X. It is also somewhat tricky to correctly build all the pieces of a Python framework from source on OS X. I highly recommend that you use a packaged Python install: either a binary installer from python.org or built using a package management system from one of the third-party OS X package distributors: MacPorts, Homebrew, or Fink. It may take a little effort to get familiar with how any of them work but it will pay off in the long run when you need to install Python packages that depend on third-party libraries (things like MySQLdb or PIL). Of the three, I have the most experience with MacPorts so I tend to recommend it but any of the three will do the job. Currently, the MacPorts Tcl/Tk, as used by its Pythons, is an X11-based one rather than the Aqua Tk like shipped by Apple and ActiveState. Unfortunately, due to the various problems with the Aqua Tk 8.5's available today, it may be worth considering using the X11-based one. It's definitely not native looking on OS X but it seems to be more stable. http://www.python.org/download/mac/tcltk/ http://www.macports.org/ http://mxcl.github.com/homebrew/ http://www.finkproject.org/ -- Ned Deily, nad at acm.org