From: D-Man <ds...@ri...> - 2001-04-03 19:33:23
|
(forwarded because it looks like a typo in the list address prevented the list from seeing this) ----- Forwarded message from cindy <inf...@pi...> ----- From: cindy <inf...@pi...> Date: Wed, 04 Apr 2001 04:24:21 -0400 To: D-Man <ds...@ri...> Cc: Jyt...@li... X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) > > class Foo : > def func( self ) : > print "func was called" > > def runme( self ) : > func() # this won't work as you've seen in your code > > def runme2( self ) : > self.func() # this will work as expected This I undertstand, but I don't see how "self" can be used on a class that is inherited and that is abstract, such as Component. When I do "self.enableEvents(java.awt.event.WindowEvent.WINDOW_EVENT_MASK)" I get an AttribueError on enableEvents, which I would expect. Thanks. Wayne ----- End forwarded message ----- |