loop problem

2005-07-13 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, First, I want to thank those who responded to my question about "the plot module" yesterday.  I realize now that the question could have been vague.  There is a plot module, simply called "plot," that I am using, and I guess it is not a very widely circulated plotting utility.    Anyway, I

Tkinter Button widget

2005-07-14 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I have another Tkinter-related question. At the beginning of my program, a tkinter window is created with six buttons. Each of these buttons is assigned a function that should be executed only when the button is pressed. However, it seems that these functions are all executed once w

Learning Python - resources and ideas

2005-02-08 Thread [EMAIL PROTECTED] (Cody Houston)
Hi. What is the best way to learn Python? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Learning Python - resources and ideas

2005-02-08 Thread [EMAIL PROTECTED] (Cody Houston)
Hi. What is the best way to learn Python? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

urllib question

2006-08-21 Thread [EMAIL PROTECTED] Hunter Rojas
how can I retrieve a web page using an authenticated proxy? -- http://mail.python.org/mailman/listinfo/python-list

[newbie] Iterating a list in reverse ?

2006-06-21 Thread Andy Dingley <[EMAIL PROTECTED]>
Python newbie: I've got this simple task working (in about ten different ways), but I'm looking for the "favoured" and "most Python like" way. Forwards I can do this for t in listOfThings: print t Now how do I do it in reverse? In particular, how might I do it if I only wanted to iterate p

Re: Iterating a list in reverse ?

2006-06-21 Thread Andy Dingley <[EMAIL PROTECTED]>
Fredrik Lundh wrote: > for item in reversed(listOfThings): Thanks! I was staring so hard at reverse() that I'd completely missed reversed() I think I prefer this to listOfThings[::-1]: as it's a little more readable. Not that I'm reacting to past bad experience of Perl, you understand 8-) --

Re: Python in HTML

2006-06-23 Thread Andy Dingley <[EMAIL PROTECTED]>
[EMAIL PROTECTED] wrote: > Python, like it's (evil?) cousin Perl, Isn't that evil cousin Ruby? Perl's the mad old grandmother in the attic, spewing out incomprehensible [EMAIL PROTECTED]&% swearing all day. > can be used as a CGI. If you > don't have one alre

Re: list comprehension

2006-06-30 Thread Andy Dingley <[EMAIL PROTECTED]>
Simon Forman wrote: > There's more to it, but that's the basic idea. This much I knew, but _why_ and _when_ would I choose to use list comprehension (for good Python style), rather than using a simple "traditional" loop ? If I want to generate something that's simply ( [1] + [2] + [3]+... ) the

a question from a newcomer to this language

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I am a undergraduate physics student, and I have been asked to write some code in Python for my summer job. Over the past few days, I have been learning Python and Tkinter, so naturally, I have several questions about the language. Here's one: Is there any way to convert a string into an

Re: RE: a question from a newcomer to this language

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Thank you for your help. I will post the problem in more detail if I find that I cannot avoid using exec. Shankar - Original Message - From: Michael Chermside <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 3:49 pm Subject: RE: a question from a newcomer to this language >

bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
I have been trying to learn how to associate keyboard events with actions taken by a Python program using Tkinter. From what I've read online, it seems that this is done with the bind methods. In one of my programs, I have included the following: self.enternumber = Entry(self) self.enternumb

Re: bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
I believe the quit function is built in. Anyway, I get the same type of error if I substitute a function that I have defined. Shankar - Original Message - From: VK <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 4:53 pm Subject: Re: bind in Tkinter > Shankar Iyer ([EMAIL

Re: bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Thanks! Your message guided me to the solution to my problem. Shankar - Original Message - From: Markus Weihs <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 5:01 pm Subject: Re: bind in Tkinter > Hi! > > If you press a key, a key-event is passed to the function, here

dir() with string as argument

2005-06-16 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, Suppose I have a string, sModuleName, that contains the name of a module. I now want to see what functions are in that module, but if I call dir(sModuleName), I instead get the list of operations that can be done on a string. Is there any way to convert the string into a format that I cou

OCR question

2006-03-15 Thread Duncan Watson<[EMAIL PROTECTED]>
I run a small guild in an on-line MMO (City of Heroes). As part of this I maintain a roster of our membership and their level and various in-game statistics. Unfortunately I can't get the data from the MMO directly. I have been taking screenshots of the in-game roster and then transcribing it in

Re: OCR question

2006-03-16 Thread Duncan Watson <[EMAIL PROTECTED]>
Excellent suggestion. I found it. I will see what I can do about some edge detection to crop the images so that gocr has an easier time of it. Thanks -Duncan -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-16 Thread [EMAIL PROTECTED] opalinski from opalpaweb
icator of negativity. Anyway, the more code I write and read the less indentation matters to me. My brain can now parse akward source correctly far bettter than it did a few years ago. All the best, Opalinski [EMAIL PROTECTED] http://www.geocities.com/opalpaweb/ -- http://mail.python.org/mailman/listinfo/python-list

UNSUBSCRIBE

2008-01-22 Thread TezZ Da [EMAIL PROTECTED] MaN
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diez B. Roggisch Sent: 22 January 2008 20:22 To: [email protected] Subject: Re: isgenerator(...) - anywhere to be found? Jean-Paul Calderone wrote: > On Tue, 22 Jan 2008 15:15:43 +0100, &quo

<    45   46   47   48   49   50