Hi All,
I was wondering if anyone had used os.path.walk within a class or not,
and what are the pitfalls...
What has got me worried is that the function called by os.path.walk
must be a method of the class.
Now this means it will have something like this as a def:
def func_called_by_walk(self
Luke Paireepinart wrote:
> Zsiros Levente wrote:
>
>> [snip code]
>> *def* handler(event):
>> *if* buttonpressed == 1 :
>> /#if the mousebutton is pressed and moved, circles should
>> appear, but they do not/
>> can.create_oval(event.x-r, event.y-r, event.x+r, event.y+r,
>> f
On Mon, 21 Aug 2006 13:19:54 -0400
"Marcus Dean Adams" <[EMAIL PROTECTED]> wrote:
> I_m fairly new to python, I_ve been dabbling in it for school and I have a
> question. I_ve written a few programs using graphical windows with input
> boxes such as a stopwatch, temperature converter, etc. I_ve
You're right, that I pressed reply instead of reply-to-all, so the list
didn't see my response. But this way you got my mail twice. Isn't that
annoying? Other maillist servers used to use the reply-to tag in the
message header.
Luke Paireepinart wrote:
> Zsiros Levente wrote:
>
>> [snip code]
Zsiros Levente wrote:
>Luke Paireepinart wrote:
>
>
>
>>Zsiros Levente wrote:
>>
>>
>>
>>>[snip code]
>>>*def* handler(event):
>>>*if* buttonpressed == 1 :
>>>/#if the mousebutton is pressed and moved, circles should
>>>appear, but they do not/
>>>can.create_oval(event.x
Why does the python shell says this:
>>> print exec.__doc__
File "", line 1
print exec.__doc__
^
SyntaxError: invalid syntax
While it works with "eval".
Anyway, I'm quite impressed with the resposiveness of this list. Thanks
a lot.
Zsiros Levente wrote:
>
>
> Sorry, the s
nimrodx wrote:
> Hi All,
>
> I was wondering if anyone had used os.path.walk within a class or not,
> and what are the pitfalls...
>
> What has got me worried is that the function called by os.path.walk
> must be a method of the class.
> Now this means it will have something like this as a def:
Zsiros Levente wrote:
> Why does the python shell says this:
>
>
print exec.__doc__
> File "", line 1
> print exec.__doc__
> ^
> SyntaxError: invalid syntax
>
>
> While it works with "eval".
exec is a statement that is interpreted by the compiler and compil
I have managed to write a small GUI app, it had a frm_app.py from eric3s QT
designer & a dlg_app.py which defined a class that inherited the frm_app.py
class ... all AOK
I am now on a more ambitious project. There will be a main app screen, some
dialogue screens for more info etc and a backend
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Nimrodx,
In case you haven't found a solution yet, I developed a program to
encode/decode stuff similar to this.
You may want to take a look at it at
http://home.townisp.com/~arobert/python/file_encoder.py
nimrodx wrote:
> Hi Alan,
>
> I fou
> What has got me worried is that the function called by os.path.walk
> must be a method of the class.
> Now this means it will have something like this as a def:
>
> def func_called_by_walk(self, arg, directory, names):
>
> Will this work with os.path.walk with that definition?
No, but you can w
> Yes, that is the right way to do it and it will work fine. Something
> like
>
> class Walker(object):
> def walk(self, base):
>os.path.walk(base, self.callback, None)
>
> What happens is, when Python looks up self.callback it converts the
> method to a "bound method".
Aargh! I should hav
> Why does the python shell says this:
>
print exec.__doc__
> File "", line 1
>print exec.__doc__
> ^
> SyntaxError: invalid syntax
exec, like print, is a statement, or command, not a function.
You get the same response if you try
>>> print print.__doc__
or
>>> help(pr
> I am now on a more ambitious project. There will be a main app
> screen, some
> dialogue screens for more info etc and a backend script analysing a
> database
> which will take some time to run.
>
> How to fit the GUI around it ?
>
> If I have my dlg_app.py inhereting frm_app.py all is well un
On Tuesday 22 August 2006 17:15, Alan Gauld wrote:
> > I am now on a more ambitious project. There will be a main app
> > screen, some
> > dialogue screens for more info etc and a backend script analysing a
> > database
> > which will take some time to run.
> >
> > How to fit the GUI around it ?
>
> def handler(event):
> if buttonpressed == 1 :
> /#if the mousebutton is pressed and moved, circles should
> appear, but they do not/
> can.create_oval(event.x-r, event.y-r, event.x+r, event.y+r,
> fill="orange")
> lab.config(text='buttonpressed=' + str(bu
On 8/21/06, shawn bright <[EMAIL PROTECTED]> wrote:
> Yes, indeed. I found in the essential reference book. It looks like it works
> in the email module also. I will try a few things out here and let you know
> how it goes.
> thanks.
>
> shawn
>
>
> On 8/21/06, Alan Gauld <[EMAIL PROTECTED]> wrote
On 8/18/06, anil maran <[EMAIL PROTECTED]> wrote:
> thanks alan it is very enlightening
> can one of you guys who have experience building sites
> such as yahoo mail and stuff, explain what parts of a
> webserver needs to be multithreaded
>
> > > Because of the low-level socket and threading code
>
Luke Paireepinart said unto the world upon 21/08/06 03:48 PM:
> Sort of how my last name is 12 characters long, but on some apps that
> only have a 12 character array (with the actual length being 11 because
> of the null terminator) the last letter of my name gets truncated.
> This doesn't
Thanks to everyone for your helpful answers!
-Elaine
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Tutor maillist - Tutor@python.org
http:/
How to use this program?
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I have this long print statement in a script:
print "Initial integer of first sequence with number of terms of %d
or more was %s (%d)" % (length, intCommas(n_for_max_c), n_for_max_c)
It's one line of code, and too long. How can I wrap it so that it is
written in the code as 2 lines?
(I hope I
Dick Moores wrote:
> I have this long print statement in a script:
>
> print "Initial integer of first sequence with number of terms of %d
> or more was %s (%d)" % (length, intCommas(n_for_max_c), n_for_max_c)
>
> It's one line of code, and too long. How can I wrap it so that it is
> written in
At 11:10 PM 8/22/2006, Bob Gailer wrote:
>Dick Moores wrote:
>>I have this long print statement in a script:
>>
>>print "Initial integer of first sequence with number of terms of %d
>>or more was %s (%d)" % (length, intCommas(n_for_max_c), n_for_max_c)
>>
>>It's one line of code, and too long. Ho
24 matches
Mail list logo