er(self,event, 'release') call.
Correct me, if I'm wrong.
>
>
>#!/usr/bin/python
>
># This program implements . it was originally written by
>#Zsiros Levente. all rights of this modified ve
er(self,event, 'release')
call.
Correct me, if I'm wrong.
#!/usr/bin/python
# This program implements . it was originally written by
#Zsiros Levente. all rights of this modified version go to him :)
from Tkinter import *
class ButtonHandler(object):
def __init__(self):
er(self,event, 'release')
call.
Correct me, if I'm wrong.
#!/usr/bin/python
# This program implements . it was originally written by
#Zsiros Levente. all rights of this modified version go to him :)
from Tkinter import *
class ButtonHandler(object):
def __init__(self):
The link is broken.
Mike Hansen wrote:
>
>
>
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Zsiros Levente
>>Sent: Thursday, August 24, 2006 2:21 PM
>>To: Danny Yoo
>>Cc: python tutor
>&
Alan Gauld wrote:
>
>> 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
>
>
If we're talking about data hiding, let me ask: why Python doesn't
implement data hiding (I mean 'private' and 'protected')? I consider it
a very important OOP feature, because that makes OOP different from
structural programming.
Danny Yoo wrote:
>> def handler(event):
>> if buttonpressed
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.
Zsiro
Zsiros Levente wrote:
>Luke Paireepinart wrote:
>
>
>
>>Zsiros Levente wrote:
>>
>>
>>
>>>[snip code]
>>>*def* handler(event):
>>>*if* buttonpressed == 1 :
>>>/#if the mousebutton is pressed and moved
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 wrot
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(
l the
function for the object, represented by the string. (If you run it, it
will become more obvious what I mean.)
Original Message
Subject:[Fwd: self-modification]
Date: Mon, 21 Aug 2006 16:06:52 +0200
From: Zsiros Levente <[EMAIL PROTECTED]>
To: python tutor
#!/usr/bin/python
# In this program I wanted to write the event on my own, combining , and ,
# but unfortunetly it doesn't work. No syntax errors.
from Tkinter import *
def handler(event):
if buttonpressed == 1 :
#if the mousebutton is pressed and moved, circles should appear, but
I forgot the most important thing: the attachment.
Original Message
Subject:self-modification
Date: Mon, 21 Aug 2006 16:04:19 +0200
From: Zsiros Levente <[EMAIL PROTECTED]>
To: python tutor
I'm a newbie to Python. I wanted to write a graphica
I'm a newbie to Python. I wanted to write a graphical interface which
would show the built-in documentation (I mean dir() and __doc__ ) of
Python. The code shows how far I got before realizing that I had to use
some self-modification feature (converting a string to a function or to
an object; i
14 matches
Mail list logo