Пример #1
0
 def draw_uix(self):
     self.test_field.add_widget(utils.AudioButton("sounds/ins6-2.mp3"))
     self.test_field.add_widget(self.sent_1)
     self.test_field.add_widget(self.sent_1_chb)
     self.test_field.add_widget(utils.AudioButton("sounds/ins6-3.mp3"))
     self.test_field.add_widget(self.sent_2)
     self.test_field.add_widget(self.sent_2_chb)
     self.add_widget(self.test_field)
     super(SpeachRepeatTest, self).draw_uix()
Пример #2
0
 def draw_uix(self):
     self.test_field.add_widget(
         utils.microgrid(False, utils.AudioButton("sounds/ins4-2.mp3"),
                         self.normal_chb, self.normal_lb,
                         utils.AudioButton("sounds/ins4-3.mp3")))
     self.test_field.add_widget(
         utils.microgrid(False, utils.AudioButton("sounds/ins4-4.mp3"),
                         self.reverse_chb, self.reverse_lb))
     self.add_widget(self.test_field)
     super(NumberTest, self).draw_uix()
Пример #3
0
    def draw_uix(self):
        self.popup_instruction = utils.PopupHint(self.instruction)
        self.hidden_options = utils.Hidden(self)
        self.inst_audio_button = utils.AudioButton(self.instruction_audio,
                                                   pos_hint={
                                                       "x": .8,
                                                       "y": .92
                                                   })

        self.add_widget(self.inst_audio_button)
        self.add_widget(self.help_button)
        self.add_widget(self.hidden_button)
Пример #4
0
    def draw_uix(self):
        self.test_field.add_widget(Label(text="Slovo", size_hint_x=.3))
        self.test_field.add_widget(
            utils.microgrid(
                False,
                *([utils.microgrid(True, label) for label in self.labels] +
                  [utils.AudioButton("sounds/ins3-2.mp3")])))

        self.test_field.add_widget(Label(text="1. pokus", size_hint_x=.3))
        self.test_field.add_widget(
            utils.microgrid(
                False,
                *([
                    utils.microgrid(True, self.f_try[label])
                    for label in self.labels
                ] + [
                    utils.AudioButton("sounds/ins3-3.mp3",
                                      size_hint=(None, None),
                                      width=32,
                                      height=32)
                ])))

        self.test_field.add_widget(Label(text="2. pokus", size_hint_x=.3))
        self.test_field.add_widget(
            utils.microgrid(
                False,
                *([
                    utils.microgrid(True, self.s_try[label])
                    for label in self.labels
                ] + [
                    utils.AudioButton("sounds/ins3-4.mp3",
                                      size_hint=(None, None),
                                      width=32,
                                      height=32)
                ])))

        self.add_widget(self.test_field)
        super(RememberTest, self).draw_uix()