I have the following code:
import Tkinter
from labrad.server import LabradServer
class MyController(LabradServer,Tkinter.Tk):
def __init__(self, var, parent=None):
LabradServer.__init__(self)
Tkinter.Tk.__init__(self,parent)
self.parent = parent
if __name__ == "__main__":
app = MyController(9)
app.title('Controller')
app.mainloop()
When I run this, however, I get TypeError: __init__() takes exactly 1 argument (3 given)
. I know this is from the second __init__()
call, since I can freely print something after the LabradServer.__init__(self)
and it will print before the error is triggered. Any idea what is causing this, or how to fix it?