I am a beginner in python but my OOPS concept from Java and Android are strong enough to motivate me in making some tool in python. I am using PyQt for developing the application. In my application there are lot of QTabWidget used and has lot of UI controls in each TAB widget. Please see the screenshot for the same.
All of the event control of entire tool i have kept in one single file but now i want to segregate it based on one individual python file per QTab for event control inside the Tab.
My project file architecture looks like :
I know this would be some really easy thing but considering my experience with Python i am finding it difficult. I would really appreciate example with code snippet. Since i am able to control real complicated QThread from seperate files but not able get how to do it for Ui controls.
I tried making a file for it like i made for Thread classes but end up with argument passing expection to super
from generated.MainGUI import Ui_MainWindow
class SemiAuto_Create_Load(QtGui.QMainWindow):def __init__(self,parent=none):super(SemiAuto_Create_Load, self).__init__()self.ui = Ui_MainWindowself.ui.setupUi(self)self.connectControlEvents()
Tried : self.sacl = SemiAuto_Create_Load()
Exception :
TypeError: init() takes exactly 3 arguments (1 given)