def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) Database.__init__(self) self.gui = Ui_Export() self.gui.setupUi(self) with open(os.path.join('tmp', 'comm'), 'w') as comm: # communicates with export manager comm.write('') # Calls --------------------- self.leagues_tree() self.profiles_tree() self.bindings()