OK, I'm going to take a shot at this. If what I'm understanding is correct,
a dictionary might help. But that would depend on the format of the
original sequence. If you have a list:
Lst1 = ['cow', 'pig', 'chicken', 'poultry', 'beef', 'pork']
Then you could:
Lst1.index('chicken')
And get 2,
Using a mouse I could use event.x to find the current location of the mouse.
But if I have a canvas with a gif and I need the current location of the
gif, could I bind the gif to an arrow event to get the feedback of where the
gif is at any given time? If so, can someone show me how?
T
_
irst post.
T
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tom Tucker
Sent: Friday, May 18, 2007 3:27 PM
To: tutor@python.org
Subject: Re: [Tutor] (no subject)
Very cool! Where is Inky, Blinky, Pinky, and Clyde? ;-) Maybe dog catchers
would be better foes for Dusty.
O
Hi all:
Remember when I was having problems moving my .gif around my Tkinter maze?
Well, I was going about it all wrong (as some pointed out). What REALLY
works is a graph. I used a dictionary, the keys are main coordinates that
are a path that the .gif follows using a greedy algorithm that find
lem.
not giving up!!!
T
-Original Message-
From: ALAN GAULD [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 10, 2007 2:27 PM
To: Teresa Stanton
Cc: tutor@python.org
Subject: Re: [Tutor] canvas -> CLASSES
> T's reply:
> The maze is simply the backdrop. I've attached t
I hope you are not tired of me posting about this, but I'm determined to
understand what I'm doing wrong, and that means I'm pounding away, searching
and not able to fix it or find what the problem is.
I've written the class to make the .gif move. Now, this did work (to a point)
when I was wri
Um... Here's the attached code, sorry.
Alan said:
What do you see the maze as doing?
T's reply:
The maze is simply the backdrop. I've attached the new and improved code.
Alan said:
OK, So I'm asssuming these gifs represent something, not actual gif
files?
T's reply:
um... actually, the
- Original Message -
From: "Alan Gauld" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 10, 2007 11:04 AM
Subject: Re: [Tutor] canvas -> CLASSES
> Alan said:
> What do you see the maze as doing?
T's reply:
The maze is simply the backdrop. I've attached the new and improved code.
Alan sa
lass? Is it even possible? am I asking the right question?
T
- Original Message -
From: "Alan Gauld" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, May 09, 2007 1:08 PM
Subject: Re: [Tutor] canvas -> CLASSES
>
> "Teresa Stanton" <[EMAIL PROTECTED]>
irection?
Thanks
T
- Original Message -
From: "John Fouhy" <[EMAIL PROTECTED]>
To: "Python Tutor"
Sent: Monday, May 07, 2007 3:22 PM
Subject: Re: [Tutor] canvas -> make an object 'seem' to move
On 08/05/07, Teresa Stanton <[EMAIL PROTECTED]> w
e entire module better, but then again,
I've never written anything this big in Python, and nothing like this in
Tkinter. So, perhaps someone will have a suggestion?
Thank you
T
- Original Message -
From: "John Fouhy" <[EMAIL PROTECTED]>
To: "Teresa Stanton
ection to
go, but I'm still not getting anywhere. I tried using the update, but it
didn't seem to do anything. At this point, I simply want movement from left
to right.
help... ?
> On 04/05/07, Teresa Stanton <[EMAIL PROTECTED]> wrote:
>> the image and moves it. I
Hi all:
I am working on a program that will take a .gif and move it from origin, along
a path where the mouse clicks. I understand that the move is simply changing
the coordinates. I can place several .gif's on the canvas, but I would like to
make the previous image go away (delete or be remo
I would like more information about this as well. I found something on
sourceforge about using python modules to run a web cam. I've got the
files, but not quite sure how to use the web server.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PR
No one suggested this. That's great! Wish I had seen it sooner. Thanks,
I'll put that in my notebook for further use later.
-Original Message-
From: Daniel Yoo [mailto:[EMAIL PROTECTED]
Sent: Friday, April 13, 2007 5:51 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Comm
If one argument to a script is provided I am to take the input from it. I
figure that is presented like this:
filename = sys.argv[1]
data = open(filename).read()
But, if none are provided, input should come from standard input. How do I
write that code?
TY
_
16 matches
Mail list logo