Re: [Tutor] how to change the values of keyboard keys in TKINTER

2008-01-16 Thread ALAN GAULD
i dont want to change alt+f4 for every application on the computer permanently... i just want to change it a particular area do we have any options for this In that case all you need to do is to bind the key to the same action as the Enter key. Enter usually is a default action so you will

Re: [Tutor] Input

2008-01-16 Thread Ricardo Aráoz
Tiger12506 wrote: Of course I know and use reg. exps., the point of the function is not to validate input but to force the proper input. So? Are you going to try to tell me that you can force particular input without actually determining if its valid or not first? ;-) Just a thought.

Re: [Tutor] Input

2008-01-16 Thread Ricardo Aráoz
Kent Johnson wrote: Ricardo Aráoz wrote: _validChars = { 'X' : 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' , '9' : '1234567890' , '-' : '-1234567890' , 'A' :

Re: [Tutor] help, thanks very much.

2008-01-16 Thread Alan Gauld
bill.wu [EMAIL PROTECTED] wrote i ask a easy question. why the first one havex,the second one doesn't have x. what is different? The first is using x as the name of a parameter of the function and is only used inside the function. The second one takes no parameter and relies on

Re: [Tutor] parsing html.

2008-01-16 Thread Alan Gauld
Shriphani Palakodety [EMAIL PROTECTED] wrote in I have a html document here which goes like this: A name=4/abTable of Contents/b . A name=5/abPreface/b Can someone tell me how I can get the string between the b tag for an a tag for a given value of the name attribute. Heres an

Re: [Tutor] Input

2008-01-16 Thread Alan Gauld
Tiger12506 [EMAIL PROTECTED] wrote Of course I know and use reg. exps., the point of the function is not to validate input but to force the proper input. So? Are you going to try to tell me that you can force particular input without actually determining if its valid or not first? ;-)

Re: [Tutor] Why Won't My Pizza Fall?

2008-01-16 Thread Alan Gauld
Tiger12506 [EMAIL PROTECTED] wrote [Background from Alan] ... Thus the context object should respond to some message from Pizza and in this case the Pizza should hold a reference to its context manager(probably a screen or grid of some sort). [disclaimer] This email has particularly strong

Re: [Tutor] parsing html.

2008-01-16 Thread Kent Johnson
Shriphani Palakodety wrote: Hello, I have a html document here which goes like this: A name=4/abTable of Contents/b . A name=5/abPreface/b Can someone tell me how I can get the string between the b tag for an a tag for a given value of the name attribute. In [30]: from

[Tutor] Programming Ideas, need some focus

2008-01-16 Thread Fiyawerx
I've been over google for hours now, and I'm sort of at a lull in my learning, as I don't really have a current goal. I know I could set some easy goal like to learn a specific function or feature, but I still have a hard time with that approach also. I was wondering if anyone knows of any sites

Re: [Tutor] help, thanks very much.

2008-01-16 Thread Kent Johnson
bill.wu wrote: i am new guy. i ask a easy question. There is no need to ask twice. Please post messages in plain-text, not HTML. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
There are programming contests you can enter. I don't know of any more still running past these two (but would love to hear of more): Sphere Online Judge: http://www.spoj.pl/problems/classical/ Topcoder's Development Contests: http://www.topcoder.com/tc?module=ViewActiveContestsph=113

Re: [Tutor] parsing html.

2008-01-16 Thread Paul McGuire
Here is a pyparsing approach to your question. I've added some comments to walk you through the various steps. By using pyparsing's makeHTMLTags helper method, it is easy to write short programs to skim selected data tags from out of an HTML page. -- Paul from pyparsing import makeHTMLTags,

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Eric Abrahamsen
Hey, on this topic, I spent some time this afternoon googling the One Laptop Per Child (OLPC) project (the GUI is done with Python and PyGTK), to see if there were any collaborative open-source projects I could contribute to. Seems like a perfect opportunity to get a little more Python

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
No, but this is quite useful for getting it up and going on your PC: http://wiki.laptop.org/go/OS_images_for_emulation I was looking at Metropolis (the non-TM version of SimCity) as its gui is all written in python --Michael On 1/16/08, Eric Abrahamsen [EMAIL PROTECTED] wrote:

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Eric Abrahamsen
I'm on a Mac, and it seems the current advice for Sugar emulation on the Mac is come back next year, or the year after... I did get PyGTK working, tho. On Jan 16, 2008, at 10:13 PM, Michael Langford wrote: No, but this is quite useful for getting it up and going on your PC:

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Noufal Ibrahim
Fiyawerx wrote: I've been over google for hours now, and I'm sort of at a lull in my learning, as I don't really have a current goal. I know I could set some easy goal like to learn a specific function or feature, but I still have a hard time with that approach also. I was wondering if

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Kent Johnson
Fiyawerx wrote: I've been over google for hours now, and I'm sort of at a lull in my learning, as I don't really have a current goal. I know I could set some easy goal like to learn a specific function or feature, but I still have a hard time with that approach also. I was wondering if

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
First off OLPC still needs help with: http://wiki.laptop.org/go/Journal http://wiki.laptop.org/go/Bitfrost http://wiki.laptop.org/go/School_Server Secondly: To start playing with python on the OLPC, click pippy the python :o) Lastly, you can emulate the build on most computers, Mac/Win/Linux:

Re: [Tutor] Reading Input Data

2008-01-16 Thread lechtlr
Thank you all for your suggestions. The purpose of this script to read values for initialization of a class that calls functions from another software program for chemically reacting flows (www.cantera.org). I have around 25 input variables with distinct variable names (don’t follow any

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread James Newton
Eric Abrahamsen wrote I spent some time this afternoon googling the One Laptop Per Child (OLPC) project (the GUI is done with Python and PyGTK), to see if there were any collaborative open-source projects I could contribute to. Seems like a perfect opportunity to get a little more Python

Re: [Tutor] A faster x in S

2008-01-16 Thread Dinesh B Vadhia
I used the s.intersection(t) function in the set type as it was the most appropriate. The performance was phenomenal. Thank-you! Dinesh - Original Message - From: bob gailer To: Dinesh B Vadhia Cc: tutor@python.org Sent: Tuesday, January 15, 2008 2:03 PM Subject: Re: [Tutor] A

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread bob gailer
Yet one more offering: en.wikipedia.org/wiki/Python_Pipelines This is my project - and a way you could help is: I'd give you the specification of a stage and you'd develop a python function or class that would implement that stage. The first stages would be fairly simple, then things would get

[Tutor] Pycron - Does anyone have experience with this?

2008-01-16 Thread Garry Bettle
Howdy all, Hope this finds everyone well - roll on the weekend. I've been using pycron for months now with no trouble at all. It's a great scheduling program. I'm now trying to schedule a file copy from a network share. However, Pycron chokes, as it requires the share to fully qualified.

[Tutor] Program Specification Request

2008-01-16 Thread Roger Maxwell
Hi all: 1st post! Have been lurker 4 some time. Thanks to all. I am new to Python and a former DOS Clipper programmer. I would like to learn and teach my 2 girls a mini database GUI program in Python and They are Girl Scouts (and advanced MS HS students) It is, almost, (19

Re: [Tutor] Program Specification Request

2008-01-16 Thread Ben Bartrum
Question(s): Q01: Is this a 'reasonable' first project? Yes. But I'd say do it in 2 phases. First do a command-line version, then do the GUI. Q02: We can use either MAC or WinXP but which? Or both? It realy doesn't matter Q03: Is this the appropriate forum? Yes

Re: [Tutor] Program Specification Request

2008-01-16 Thread R. Alan Monroe
I would like to learn and teach my 2 girls a mini database GUI program in Python and They are Girl Scouts (and advanced MS HS students) http://davidbau.com/archives/2005/07/29/haaarg_world.html Alan ___ Tutor maillist -

Re: [Tutor] Program Specification Request

2008-01-16 Thread Alan Gauld
Roger Maxwell [EMAIL PROTECTED] wrote I would like to learn and teach my 2 girls a mini database GUI program in Python and Since sqlite is included in the standard distribution of Pythn 2.5 you might as well use that. It is easy to administer and uses a simplified version of

Re: [Tutor] Program Specification Request

2008-01-16 Thread johnf
On Wednesday 16 January 2008 02:44:25 pm Alan Gauld wrote:   It is, almost, (19 January 2008)GS cookie time in CA. Coming from Scotland I have no idea what that means! What no Girl Scout cookies in Scotland???:-) -- John Fabiani ___ Tutor

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Eric Abrahamsen
Any takers? Eric on the mac side? Some other windows user on the windows side? I guarantee OLPC will be running on your computer by the end of this. I'll give this a shot this Saturday – I ought to be an ideal test candidate since I'm more or less an installation/configuration idjit. I'll

[Tutor] [tutor] Comparing two images using PIL

2008-01-16 Thread Varsha Purohit
Hello Everyone, I have an application where i am comparing two images(jpg) which are almost identical but have little difference. I wanted to mark the difference with a different colour to highlight the region which is different from 1st image. Can you tell me if there is any image

Re: [Tutor] [tutor] Comparing two images using PIL

2008-01-16 Thread Kent Johnson
Varsha Purohit wrote: Hello Everyone, I have an application where i am comparing two images(jpg) which are almost identical but have little difference. I wanted to mark the difference with a different colour to highlight the region which is different from 1st image. Can you tell me