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
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
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())
>
>
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
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.
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
> 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/
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 "
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
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
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
25 matches
Mail list logo