View Single Post
Old 09-14-10, 03:27 PM   #208
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by RdJ View Post
Thanks, I got it to work

Now, I have a new issue
Code:
class MyServer(DdeServer):
 def __init__(self,service):
 base.service = service
 
def InitializeScript():
 # --- Start: Initialize DDE server --- #
 global SpeechServer
 SpeechServer = MyServer("shspeech")
 # --- End: Initialize DDE server --- #
Everytime, it says: MyServer() takes at least 2 arguments (1 given)

I've tried giving more arguments, but that doesn't work...
you're trying to call the base class the incorrect way. You should do it this way:

super( MyServer, self ).service = service
TheDarkWraith is offline   Reply With Quote