def __init__( self, semester ): # init model self.semester = semester BGModelController.init() self.course_list = BGModelController.get_courses_for_semester(self.semester) # init bi Controller.__init__( self, title="Course List", view=CourseListView(self,self) ) self.button_info_dict['tl'] = 'go back to the Semester list' self.button_info_dict['tr'] = 'view the Semester information' self.button_info_dict['bl'] = 'delete currently selected course' self.button_info_dict['bm'] = 'None' self.button_info_dict['br'] = 'add a course'
def __init__(self, semester): # init model self.semester = semester BGModelController.init() self.course_list = BGModelController.get_courses_for_semester( self.semester) # init bi Controller.__init__(self, title="Course List", view=CourseListView(self, self)) self.button_info_dict['tl'] = 'go back to the Semester list' self.button_info_dict['tr'] = 'view the Semester information' self.button_info_dict['bl'] = 'delete currently selected course' self.button_info_dict['bm'] = 'None' self.button_info_dict['br'] = 'add a course'
def update( self ): self.course_list = BGModelController.get_courses_for_semester(self.semester) Controller.update(self)
def update(self): self.course_list = BGModelController.get_courses_for_semester( self.semester) Controller.update(self)