Esempio n. 1
0
    def displayCourseDetails(self):
        res = fetch.course_info(self.course_id) #course_name, course_level, section_name, school_id, code
        #rint'fetch.course_info:', res
        if not res:
            return False
        self.course_name  = res[0]
        self.course_level = res[1]
        self.school_id    = res[2]

        self.origional_name         = '"%s"' % self.course_name
        self.origional_course_level = self.course_level
        self.origional_school_id    = self.school_id

        loadCmb.restore(self.choice_schools, self.school_id)
        loadCmb.courseLevels_forSchool(self.choice_levels, self.school_id)

        txt = "Edit Course %s" % self.course_name
        self.SetTitle(txt)

        self.text_ctrl_course_name.SetValue(self.course_name)

        x = self.choice_levels.GetItems()

        loadCmb.restore_str(self.choice_levels, str(self.course_level) )

        return True
Esempio n. 2
0
 def __do_main(self):
     self.course_id=0
     loadCmb.schools(self.choice_schools, True)
     loadCmb.courseLevels(self.choice_levels)
     loadCmb.courseLevels_forSchool(self.choice_levels, fetch.cmbID(self.choice_schools))
     s = wx.Choice(self, -1, choices =('fg','gf'))
Esempio n. 3
0
 def OnSchool(self, event=wx.Event):
     school_id = fetch.cmbID(self.choice_schools)
     loadCmb.courseLevels_forSchool(self.choice_levels, school_id)