Re: [Tutor] Finding all locations of a sequence

2007-06-14 Thread Teresa Stanton
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,

[Tutor] tkinter arrow event location

2007-05-23 Thread Teresa Stanton
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 _

Re: [Tutor] subject changed to Tkinter arrow event

2007-05-18 Thread Teresa Stanton
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

[Tutor] (no subject)

2007-05-18 Thread Teresa Stanton
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

Re: [Tutor] canvas -> CLASSES

2007-05-10 Thread Teresa Stanton
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

[Tutor] Maze - classes

2007-05-10 Thread Teresa Stanton
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

Re: [Tutor] canvas -> CLASSES

2007-05-10 Thread Teresa Stanton
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

Re: [Tutor] canvas -> CLASSES

2007-05-10 Thread Teresa Stanton
- 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

Re: [Tutor] canvas -> CLASSES

2007-05-10 Thread Teresa Stanton
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]>

Re: [Tutor] canvas -> CLASSES

2007-05-09 Thread Teresa Stanton
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

Re: [Tutor] canvas -> make an object 'seem' to move

2007-05-07 Thread Teresa Stanton
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

Re: [Tutor] canvas -> make an object 'seem' to move

2007-05-04 Thread 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

[Tutor] canvas -> make an object 'seem' to move

2007-05-03 Thread Teresa Stanton
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

Re: [Tutor] Python Browser based?

2007-04-17 Thread Teresa Stanton
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

Re: [Tutor] Command line args

2007-04-13 Thread Teresa Stanton
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

[Tutor] Command line args

2007-04-07 Thread Teresa Stanton
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 _