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
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,
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
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
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
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
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
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
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
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
Hello all,
A bit of background, I had some slides scanned and a 3-character
slice of the file name indicates what roll of film it was.
This is recorded in a tab-separated file called fileNames.tab.
Its content looks something like:
p01 200511_autumn_leaves
p02 200603_apple_plum_cherry_blo
On 3/9/2014 3:22 PM, street.swee...@mailworks.org wrote:
Hello all,
A bit of background, I had some slides scanned and a 3-character
slice of the file name indicates what roll of film it was.
This is recorded in a tab-separated file called fileNames.tab.
Its content looks something like:
p01
> On Mar 8, 2014, at 7:29 AM, eryksun wrote:
>>
>>not not (guess < 1 or guess > 100)
>
> Why a not not? Wouldn’t that just be saying do this because the
> second not is undoing the first?
In boolean algebra, `not (A or B)` is equivalent to `not A and not B`
(De Morgan's law). I double negate
13 matches
Mail list logo