Re: help with tkinter

2019-12-14 Thread Terry Reedy
On 8/9/2019 3:40 AM, Ahmad Adam Kabbara wrote: when I write**from tkinter import* Please put statements on one line. from tkinter import * t=Tk() tkinter.colorchooser.askcolor() I get this error message Traceback (most recent call last): ** Fil

Re: help with tkinter

2019-08-10 Thread Rob Walton
Doubly agreed. Avoid import * as it makes the code a nightmare to reason about later amongst other things On Fri, 9 Aug 2019 at 20:02, Peter J. Holzer wrote: > On 2019-08-09 12:43:45 -0600, Michael Torrie wrote: > > On 8/9/19 4:52 AM, Peter J. Holzer wrote: > > > You didn't import 'tkinter', you

Re: help with tkinter

2019-08-09 Thread Peter J. Holzer
On 2019-08-09 12:43:45 -0600, Michael Torrie wrote: > On 8/9/19 4:52 AM, Peter J. Holzer wrote: > > You didn't import 'tkinter', you imported all symbols ('*') from > > tkinter. So, since you imported colorchooser, you can call > > colorchooser.askcolor() (not tkinter.colorchooser.askcolor()) > >

Re: help with tkinter

2019-08-09 Thread Michael Torrie
On 8/9/19 4:52 AM, Peter J. Holzer wrote: > On 2019-08-09 10:34:34 +0300, Ahmad Adam Kabbara wrote: >> so when I write from >> tkinter import* >> t=Tk() >> tkinter.colorchooser.askcolor() >> I get this error message >> Traceback (most recent call last): >> File "C:\Users\kabba\Desktop\color and c

Help with tkinter

2019-08-09 Thread Ahmad Adam Kabbara
I am having trouble with tkinter can you please help help with tkinter Inbox A adam kabbara to python-list@python.org 8 days ago Details Hello I am having trouble with tkinter when I enter the command from tkinter import* I get an error message Sent from Mail <https://go.microsoft.

Re: help with tkinter

2019-08-09 Thread Peter J. Holzer
On 2019-08-09 10:34:34 +0300, Ahmad Adam Kabbara wrote: > so when I write from > tkinter import* > t=Tk() > tkinter.colorchooser.askcolor() > I get this error message > Traceback (most recent call last): > File "C:\Users\kabba\Desktop\color and coordinates.py", line 3, in > > tkinter.colorch

Re: help with tkinter

2019-08-09 Thread Ahmad Adam Kabbara
so when I write from tkinter import* t=Tk() tkinter.colorchooser.askcolor() I get this error message Traceback (most recent call last): File "C:\Users\kabba\Desktop\color and coordinates.py", line 3, in tkinter.colorchooser.askcolor() NameError: name 'tkinter' is not defined I also tried ano

Re: help with tkinter

2019-08-01 Thread Wildman via Python-list
On Thu, 01 Aug 2019 16:31:02 +0300, adam kabbara wrote: > Hello I am having trouble with tkinter when I enter the command from tkinter > import* I get an error message > What was the error and what version of Python are you using? For Python 2 you need... from Tkinter import* -- GNU/Linux u

Re: help with tkinter

2019-08-01 Thread Rhodri James
On 01/08/2019 19:06, Chris Angelico wrote: On Fri, Aug 2, 2019 at 2:30 AM Rhodri James wrote: Hi there, Adam! On 01/08/2019 14:31, adam kabbara wrote: Hello I am having trouble with tkinter when I enter the command from tkinter import* I get an error message What *exactly* did you type?

Re: help with tkinter

2019-08-01 Thread Chris Angelico
On Fri, Aug 2, 2019 at 2:30 AM Rhodri James wrote: > > Hi there, Adam! > > On 01/08/2019 14:31, adam kabbara wrote: > > Hello I am having trouble with tkinter when I enter the command from > > tkinter import* I get an error message > > What *exactly* did you type? Please cut-and-paste from your

Re: help with tkinter

2019-08-01 Thread Rhodri James
Hi there, Adam! On 01/08/2019 14:31, adam kabbara wrote: Hello I am having trouble with tkinter when I enter the command from tkinter import* I get an error message What *exactly* did you type? Please cut-and-paste from your console/editor into the email, don't just retype it. If you did

help with tkinter

2019-08-01 Thread adam kabbara
Hello I am having trouble with tkinter when I enter the command from tkinter import* I get an error message Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Bingo! Updating to Python 6.2.2 did the trick (I had 6.2). I just had to relink the /usr/bin/python to the Current directory in /Library/ Frameworks/Python.framework/Versions/ and everything worked without deletions etc. Thanks for your help, everyone! Best, Edward -- http://mail.python.org/mailm

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
In article , Edward Grefenstette wrote: > Bingo! Updating to Python 6.2.2 did the trick (I had 6.2). I just had > to relink the /usr/bin/python to the Current directory in /Library/ > Frameworks/Python.framework/Versions/ and everything worked without > deletions etc. Thanks for your help, every

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: Whereas Tk 8.5 is installed in: === /Library/Frameworks/Tk.framework/Versions/8.5/ === Delete this one if you want to ensure that Python sees 8.4. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Thanks to Kevin and Ned for the pointers. The question is now this. Running find tells me I have tk.h in the following locations: === /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Tk.framework/ Versions/8.4/Headers/tk.h /Developer/SDKs/MacOSX10.4u.sdk/usr/include/tk.h /Developer/SDKs/Ma

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
In article , Edward Grefenstette wrote: > I thought of this. I uninstalled Tk from macports, but the same error > crops up. Evidently, Tk 8.5 remains installed somewhere else, but I > don't know where. How can I find out? Look in /Library/Frameworks for Tcl.framework and Tk.framework. You can

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: I thought of this. I uninstalled Tk from macports, but the same error crops up. Evidently, Tk 8.5 remains installed somewhere else, but I don't know where. How can I find out? Best, Edward Look in /Library/Frameworks... Kevin Walzer Code by Kevin http://www.codebyk

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
I thought of this. I uninstalled Tk from macports, but the same error crops up. Evidently, Tk 8.5 remains installed somewhere else, but I don't know where. How can I find out? Best, Edward > > > Have you installed Tk version 8.5? > > If so, remove it. You might also install the latest 8.4 version

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Benjamin Kaplan
On Sun, May 17, 2009 at 8:42 AM, Piet van Oostrum wrote: > > Edward Grefenstette (EG) wrote: > > >EG> Any attempt to do anything with Tkinter (save import) raises the > >EG> following show-stopping error: > > >EG> "Traceback (most recent call last): > >EG> File "", line 1, in > >EG> Fil

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Piet van Oostrum
> Edward Grefenstette (EG) wrote: >EG> Any attempt to do anything with Tkinter (save import) raises the >EG> following show-stopping error: >EG> "Traceback (most recent call last): >EG> File "", line 1, in >EG> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >EG> python2.6/

Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Any attempt to do anything with Tkinter (save import) raises the following show-stopping error: "Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/lib-tk/Tkinter.py", line 1645, in __init__ self._loadtk() File "

Re: Help with Tkinter Label Widget

2008-09-03 Thread Guilherme Polo
On Wed, Sep 3, 2008 at 8:57 PM, Kevin McKinley <[EMAIL PROTECTED]> wrote: > Below i've put the code for a program that i wrote. I need help on lines > 384-403. If you run this program you will notice on the first tab when have > it produce an answer the $ is surrounded with {$}. How can i get

Help with Tkinter Label Widget

2008-09-03 Thread Kevin McKinley
Below i've put the code for a program that i wrote. I need help on lines 384-403. If you run this program you will notice on the first tab when have it produce an answer the $ is surrounded with {$}. How can i get rid of that? from Tkinter import * class MyApp: def __init__(self, paren

Help with Tkinter and stdin input event binding

2006-09-25 Thread Diogo Bastos
Hello, I'm fairly used to working with Python but it's the first time I'm trying to use Tkinter so I'm running into a problem. I'm using three python scripts with Tkinter GUIs and a fourth script that basically opens communication pipes with the three others. The idea is that the fourth script