Re: [Tutor] educational

2014-03-11 Thread Peter Otten
MICHAEL BASHAGI wrote: [Please send your posts to the mailing list, not individual posters. Thank you.] > But the PIL doesn't work in my version of Python, i use Python 3.4 If you are still working on this: as Tim hinted there is a fork of PIL called Pillow with installers for Python 3.4. See

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
Alan Gauld writes: > On 09/03/14 19:56, Ben Finney wrote: > > Now all I need is for the Tkinter-using community to change itself > > to fix this confusing practice [‘from tkinter import *’]. I won't > > hold my breath. > > I don't find everyone in the Tkinter community using from tkinter > import

Re: [Tutor] educational

2014-03-09 Thread Mark Lawrence
On 09/03/2014 21:35, Alan Gauld wrote: On 09/03/14 19:56, Ben Finney wrote: Then I'm further confirmed in my view that ‘from tkinter import *’ is dreadful practice, especially for a system we recommend to newcomers. Its always dreadful practice for production code regardless of the module. It

Re: [Tutor] educational

2014-03-09 Thread Alan Gauld
On 09/03/14 19:56, Ben Finney wrote: Then I'm further confirmed in my view that ‘from tkinter import *’ is dreadful practice, especially for a system we recommend to newcomers. Its always dreadful practice for production code regardless of the module. Its OK for playing at the >>> prompt but

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > Ben Finney wrote: > > And Python is correct, the ‘Image’ type has no ‘open’ attribute. What > > leads you to think that would work? If there is some article online > > telling you to use that, it's incorrect; please help us to correct that. > > There are a

Re: [Tutor] educational

2014-03-09 Thread Tim Golden
On 09/03/2014 17:06, Alan Gauld wrote: On 09/03/14 10:37, Peter Otten wrote: In this case, I'm fairly sure the line producing this error is:: image = Image.open("logo.jpg") And Python is correct, the ‘Image’ type has no ‘open’ attribute. What There are a few things around called `Image

Re: [Tutor] educational

2014-03-09 Thread Alan Gauld
On 09/03/14 10:37, Peter Otten wrote: In this case, I'm fairly sure the line producing this error is:: image = Image.open("logo.jpg") And Python is correct, the ‘Image’ type has no ‘open’ attribute. What There are a few things around called `Image`. The code the OP is trying to adapt pr

Re: [Tutor] educational

2014-03-09 Thread Peter Otten
Ben Finney wrote: > Welcome, Michael! > > MICHAEL BASHAGI writes: > >> when i run those codes i get this error message:- > > When showing an error, please show the entire traceback; it usually > contains information useful for diagnosing the problem. > >> AttributeError: type object 'Image' h

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
Ben Finney writes: > It's best not to guess what attributes are in a type (otherwise known as > the “API” for the type). Instead, consult the documentation. For > Tkinter, that is http://www.python.org/topics/tkinter/>. My apologies; there's a broken link in the documentation. Use this instead

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
Welcome, Michael! MICHAEL BASHAGI writes: > when i run those codes i get this error message:- When showing an error, please show the entire traceback; it usually contains information useful for diagnosing the problem. > AttributeError: type object 'Image' has no attribute 'open' In this case,

[Tutor] educational

2014-03-09 Thread MICHAEL BASHAGI
i wanted to use a .jpeg image file on a label in a small program that am building in Python, i use Window 7 professional OS, and Python 3.4here are my codes:- import sys from tkinter import * #Window mGui=Tk() mGui.geometry("1000x500") mGui.title("Kamusi") #Functions #Variables ment=StringV