When running the code, I got following error:
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
The source code is like following:
AboutWindow.py
1 2 3 4 |
import GitFtpWindow class AboutWindow(GitFtpWindow): ... |
GitFtpWindow.py
1 2 3 4 5 6 |
from PySide.QtGui import * class GitFtpWindow(QWidget): def __init__(self): QWidget.__init__(self) self.setWindowTitle('Ftp-Git') |
This is because in AboutWindow.py file, the GitFtpWindow identifier is a package, but not a class.
To fix this problem, we need modify AboutWindow.py file like following:
1 2 3 |
from GitFtpWindow import GitFtpWindow class AboutWindow(GitFtpWindow): |