def __init__(self):
     Widget.__init__(self)
     self.username = ObjectProperty(None)
     self.password = ObjectProperty(None)
     self.host = ObjectProperty(None)
     self.app = None
     self.login_prog = None
Пример #2
0
 def __init__(self):
     Widget.__init__(self)
     self.app = None
     self.course_selector = None
     self.sections_map = {}
     self.active_section_grades_panel = None
     self.active_goal_grades_panels = []
Пример #3
0
    def __init__(self, lightSrc, maxRadius, minRadius, *args, **kwargs):
        Widget.__init__(self, *args, **kwargs)

        self.minRadius = minRadius
        self.maxRadius = maxRadius
        self.lightSrc = lightSrc

        d = getDistance(centerX, centerY, self.lightSrc[0], self.lightSrc[1])
        t = np.linspace(0, 20, int(20 / 0.2), endpoint=False)

        # Get how pupil oscillates
        calculateMovement(1.135, 0.05, 1.135, 0.0003, 1250, 0.01, t)
        self.r = maxRadius * calculateMovement(
            1, self.lightSrc[2] / maxRadius, d / maxRadius, 0.0003, 1250, 0.01,
            t)
        self.counter = 0

        self.dilate = Clock.schedule_interval(self.updatePupil, 0.2)

        # plot results
        plt.plot(t, self.r)
        plt.xlabel('time')
        plt.ylabel('y(t)')
        plt.show()
 def __init__(self):
     Widget.__init__(self)
     self.curriculum = classes.Curriculum()
     self.req_courses = set()
     self.opt_courses = set()
     self.cur_topics = []
Пример #5
0
 def __init__(self):
     Widget.__init__(self)
     self.curriculum = classes.Curriculum()
Пример #6
0
 def __init__(self):
     Widget.__init__(self)
     self.app = None
     self.course_selector = None
 def __init__(self):
     Widget.__init__(self)
     self.app = None
     self.curriculum_selector = None
Пример #8
0
 def __init__(self):
     Widget.__init__(self)
     self.course_topics = {}  # indexed by topic id
     self.course_goals = {}  # indexed by goal id
 def __init__(self):
     Widget.__init__(self)
     self.app = None