예제 #1
0
    def submit_topic(self, topic, subtopic):
        """Funktion um über die Klasse das Thema und Subthema zu übergeben."""
        self.topic = topic
        self.subtopic = subtopic
        self.options = GL.get_options()

        self.grps = 0
        self.pgroup = 0
        self.pgnum = 0
        self.richtige = 0
        self.falsche = 0
        self.snum = 0

        GL.get_korpus(self, self.topic, self.subtopic)

        self.grps = self.korpus_len // GL.GROUP_SIZE
        self.patience = [self.korpus[i::self.grps] for i in range(self.grps)]
        self.kategorie.set(topic + ": " + subtopic)

        self.pgrp_len = len(self.patience[0])

        self.question.set(self.patience[0][0]["feld_1"])
        if self.options[4] == 1:
            self.remark.set(self.patience[0][0]["bemerkung"])
        else:
            self.remark.set("")
        self.useranswer.set("")
        self.disp_answer.focus_set()

        self.symbol_indicator.set("")
        self.but_next.configure(state=GL.DISABLED)

        self.qcounter.set("R 0 | F 0 | T " + str(self.korpus_len))
예제 #2
0
파일: ModPatience.py 프로젝트: aboes/Rigor
    def submit_topic(self, topic, subtopic):
        """Funktion um über die Klasse das Thema und Subthema zu übergeben."""
        self.topic = topic
        self.subtopic = subtopic
        self.options = GL.get_options()

        self.grps = 0
        self.pgroup = 0
        self.pgnum = 0
        self.richtige = 0
        self.falsche = 0
        self.snum = 0

        GL.get_korpus(self, self.topic, self.subtopic)

        self.grps = self.korpus_len // GL.GROUP_SIZE
        self.patience = [self.korpus[i::self.grps] for i in range(self.grps)]
        self.kategorie.set(topic + ": " + subtopic)

        self.pgrp_len = len(self.patience[0])

        self.question.set(self.patience[0][0]["feld_1"])
        if self.options[4] == 1:
            self.remark.set(self.patience[0][0]["bemerkung"])
        else:
            self.remark.set("")
        self.useranswer.set("")
        self.disp_answer.focus_set()

        self.symbol_indicator.set("")
        self.but_next.configure(state=GL.DISABLED)

        self.qcounter.set("R 0 | F 0 | T " + str(self.korpus_len))
예제 #3
0
파일: ModAnschauen.py 프로젝트: aboes/Rigor
    def submit_topic(self, topic, subtopic):
        """Funktion um über die Klasse das Thema und Subthema zu übergeben."""
        self.topic = topic
        self.subtopic = subtopic

        GL.get_korpus(self, self.topic, self.subtopic)

        self.kategorie.set(topic + ": " + subtopic)

        self.state = "show"
        self.qnum = 0

        self.question.set(self.korpus[0]["feld_1"])
        self.remark.set(self.korpus[0]["bemerkung"])
        self.answer.set("")

        self.qcounter.set("1 von " + str(self.korpus_len))
예제 #4
0
    def submit_topic(self, topic, subtopic):
        """Funktion um über die Klasse das Thema und Subthema zu übergeben."""
        self.topic = topic
        self.subtopic = subtopic

        GL.get_korpus(self, self.topic, self.subtopic)

        self.kategorie.set(topic + ": " + subtopic)

        self.state = "show"
        self.qnum = 0

        self.question.set(self.korpus[0]["feld_1"])
        self.remark.set(self.korpus[0]["bemerkung"])
        self.answer.set("")

        self.qcounter.set("1 von " + str(self.korpus_len))