Ejemplo n.º 1
0
    def get_password(text_input: ObjectProperty) -> None:
        """
        Fills in the field with the prepared password.

        :param text_input: The field where you need to insert the password.
        :return: None.
        """

        text_input.text = Password.get_password()
Ejemplo n.º 2
0
    def add_jug_b(self,butt,loaded,menu,drop):
        btn1=ObjectProperty()
        self.ids.drop2.open(butt)

        if loaded!="done":

            for i in range(1,11):
                btn1=Factory.Nums_jugb()
                btn1.text=str(i)
                btn1.drop=str(menu)
                btn1.background_color=[25,1,100,.2]
                btn1.color=0,0,0,1
                self.ids.drop2.add_widget(btn1)
                butt.loaded="done"
Ejemplo n.º 3
-1
    def add_goal(self,butt,loaded,jug_a,jug_b):

        btn1=ObjectProperty()
        self.ids.drop3.clear_widgets()
        self.ids.drop3.open(butt)
        for i in valid_goals(int(jug_a),int(jug_b)):
            btn1=Factory.Nums_goal()
            btn1.text=str(i)
            btn1.background_color=[25,1,100,.2]
            btn1.color=0,0,0,1
            self.ids.drop3.add_widget(btn1)
            butt.loaded="done"