Hi,
I have a python class that extends javax.swing.JFrame and java.util.Observer.  As part of the Observer implementation I created a "update" method.

class ClientDesktop(swing.JFrame, Observer):
  def __init__(self, title):
      swing.JFrame.__init__(self, title=title, size=(200,200))

  def update(self, observable, doc):
      print "actionCommand="+doc

When I run it:

if __name__== "__main__":
   desktop = ClientDesktop("title")
   desktop.visible = 1

I get:
Traceback (innermost last):
  (no code object) at line 0
TypeError: update() takes at least 3 arguments (2 given)

If I remove the update method it runs fine.

Any thoughts as to where this is coming from?

Thanks!

Mark


--
Mark Stang <mark@markjstang.com>