Re: [Tutor] tkinter events:

2006-08-25 Thread Zsiros Levente
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

Re: [Tutor] tkinter events:

2006-08-25 Thread Zsiros Levente
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):

Re: [Tutor] tkinter events:

2006-08-25 Thread Zsiros Levente
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):

Re: [Tutor] tkinter events:

2006-08-25 Thread Zsiros Levente
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 >&

Re: [Tutor] [Fwd: [Fwd: self-modification]]

2006-08-24 Thread Zsiros Levente
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 > >

Re: [Tutor] tkinter events:

2006-08-24 Thread Zsiros Levente
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

Re: [Tutor] [Fwd: [Fwd: self-modification]]

2006-08-22 Thread Zsiros Levente
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

Re: [Tutor] tkinter events:

2006-08-22 Thread Zsiros Levente
Zsiros Levente wrote: >Luke Paireepinart wrote: > > > >>Zsiros Levente wrote: >> >> >> >>>[snip code] >>>*def* handler(event): >>>*if* buttonpressed == 1 : >>>/#if the mousebutton is pressed and moved

Re: [Tutor] tkinter events:

2006-08-22 Thread Zsiros Levente
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

Re: [Tutor] tkinter events:

2006-08-22 Thread Zsiros Levente
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(

[Tutor] [Fwd: [Fwd: self-modification]]

2006-08-21 Thread Zsiros Levente
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

[Tutor] tkinter events:

2006-08-21 Thread Zsiros Levente
  #!/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

[Tutor] [Fwd: self-modification]

2006-08-21 Thread Zsiros Levente
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

[Tutor] self-modification

2006-08-21 Thread Zsiros Levente
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