Example #1
0
 def toggle_lateral_panel(self):
     if config.get("showlateralpanel"):
         self.gui.set_visible_lateral_panel(False)
         config.set("showlateralpanel", 0)
     else:
         self.gui.set_visible_lateral_panel(True)
         config.set("showlateralpanel", 1)
Example #2
0
 def toggle_lateral_panel(self):
     if config.get("showlateralpanel"):
         self.gui.set_visible_lateral_panel(False)
         config.set("showlateralpanel", 0)
     else:
         self.gui.set_visible_lateral_panel(True)
         config.set("showlateralpanel", 1)
Example #3
0
    def __init__(self):
        """GuiController constructor"""
        self.core = None
        self.word_list = None

        # Mode can be closed, loaded or load_failed
        self.mode = "closed"

        self.gui = Gui(self)
        self.gui.set_active_video_area(False)
        self.gui_exercise_controller = None
        self.translation_visible = False
        self.correction_visible = False
        self.current_speed = 1.0

        if not config.get("showlateralpanel"):
            self.gui.set_visible_lateral_panel(False)
        else:
            self.gui.set_checked_lateral_panel(True)
            self.gui.set_visible_lateral_panel(True)
            config.set("showlateralpanel", 1)
Example #4
0
    def __init__(self):
        """GuiController constructor"""
        self.core = None
        self.word_list = None

        # Mode can be closed, loaded or load_failed
        self.mode = "closed"

        self.gui = Gui(self)
        self.gui.set_active_video_area(False)
        self.gui_exercise_controller = None
        self.translation_visible = False
        self.correction_visible = False
        self.current_speed = 1.0

        if not config.get("showlateralpanel"):
            self.gui.set_visible_lateral_panel(False)
        else:
            self.gui.set_checked_lateral_panel(True)
            self.gui.set_visible_lateral_panel(True)
            config.set("showlateralpanel", 1)