def setupMyUI(self): # connect with Ctr self.modulePageCtr = ModulePage_ctr() self.modulePageCtr.setCtr(self, self.window) # build view, model, delegate self.Frame1 = moduleFrame1_view() #self.Frame1.listView.setAlternatingRowColors(True) #moduleModel = moduleFrame1_Model() moduleDelegate = moduleFrame_Deletagte() # connect signal of frame to this page self.Frame1.enterSessionPage_SignalToPage.connect(self.goSession) self.upcomingFrame = upcomingEvent_view() upcomingModel = upcomingEvent_Model() # set model and delegate for views self.Frame1.setupUi(self.window.moduleFrame1) #self.Frame1.listView.setModel(moduleModel) self.Frame1.listView.setItemDelegate(moduleDelegate) self.Frame1.refresh() #self.window.stackedWidget.addWidget(self.Frame1) self.upcomingFrame.setupUi(self.window.moduleFrame2) self.upcomingFrame.listView.setModel(upcomingModel) self.upcomingFrame.connectToRecord(self.window) self.window.stackedWidget.setCurrentIndex(0)
def setupMyUI(self): self.upcomingFrame = upcomingEvent_view() self.Frame1 = recordedSessionFrame_View() self.Frame1.setupUi(self.window.RecordedSessionFrame1) self.upcomingFrame.setupUi(self.window.RecordedSessionFrame2) self.upcomingFrame.connectToRecord(self.window)
def setupMyUI(self): self.upcomingFrame = upcomingEvent_view() self.Frame1 = studentRecordFrame_View() #connect with Ctr self.studentRecordFrame_Ctr = studentRecordFrame_Ctr() self.studentRecordFrame_Ctr.setCtr(self.Frame1) self.Frame1.setupUi(self.window.studentRecordFrame1) self.upcomingFrame.setupUi(self.window.studentRecordFrame2) self.upcomingFrame.connectToRecord(self.window)
def setupMyUI(self): #connect with Ctr self.sessionPageCtr = sessionPage_ctr() self.sessionPageCtr.setCtr(self, self.window) self.upcomingFrame = upcomingEvent_view() self.Frame1 = sessionFrame1_View() # connect signal of frame to this page self.Frame1.enterRecordingPage_SignalToPage.connect(self.recordDialog) self.Frame1.setupUi(self.window.sessionFrame1) self.Frame1.refresh() self.upcomingFrame.setupUi(self.window.sessionFrame2)
def setupMyUI(self): #set up Ctr self.oneStudentPageCtr = oneStudentPage_Ctr() self.oneStudentPageCtr.setCtr(self, self.window) #build view self.Frame1 = oneStudentFrame_view() self.upcomingFrame = upcomingEvent_view() self.Frame1.enterAttendancePage_SignalToPage.connect(self.goStudentRecord) #setUp view self.Frame1.setupUi(self.window.oneStudentFrame1) self.Frame1.refresh() self.upcomingFrame.setupUi(self.window.oneStudentFrame2) self.upcomingFrame.connectToRecord(self.window)
def setupMyUI(self): ##connect with Ctr self.searchResultCtr = searchResult_Ctr() self.searchResultCtr.setCtr(self, self.window) #build view and model self.Frame1 = searchStudentFrame_view() self.searchResultModel = searchStudentFrame_model() self.upcomingFrame = upcomingEvent_view() # connect signal of frame to this page self.Frame1.enterStudentPage_SignalToPage.connect(self.goStudentInfo) #set Model for views when enter the page self.Frame1.setupUi(self.window.resultFrame1) self.Frame1.listView.setModel(self.searchResultModel) self.Frame1.refresh() self.upcomingFrame.setupUi(self.window.resultFrame2)
def setupMyUI(self): #connect with Ctr self.sessionPageCtr = sessionPage_ctr() self.sessionPageCtr.setCtr(self,self.window) self.upcomingFrame = upcomingEvent_view() self.Frame1 = sessionFrame1_View() ''' Add different sig for passed and future session ''' # connect signal of frame to this page self.Frame1.enterRecordingPage_SignalToPage.connect(self.dialogORrecord) #self.Frame1.enterRecordingPage_SignalToPage.connect(self.recordedSession) self.Frame1.setupUi(self.window.sessionFrame1) self.Frame1.refresh() self.upcomingFrame.setupUi(self.window.sessionFrame2) self.upcomingFrame.connectToRecord(self.window)
def setupMyUI(self): self.upcomingFrame = upcomingEvent_view() self.Frame1 = teacherInfoFrame_View() self.Frame1.setupUi(self.window.teacherInfoFrame1) self.upcomingFrame.setupUi(self.window.teacherInfoFrame2)