Skip Textinput to kivy

Asked

Viewed 22 times

0

I am developing an application that collects data from the user through Textinput widgets. I can do this task of "taking" user data and storing it. However, my software only accesses the text fields through the cursor and this, in my project, will be tiring, because it is a lot of data registered in one day. Therefore, potential users would not like this. For this reason, I decided to do some research on Python bibiotecas to help me. I ended up finding the module kivy.core.window classy Window(). I saw that this class meets my needs, but I did not find anything in the documentation or on the internet referring to this part of Textinput. Next, I show a code snippet that returns to the menu using the ESC key (27).

class OneScreen(Screen):
    def on_pre_enter(self):
        Window.bind(on_keyboard = self.voltar)

    def voltar(self, window, key, *args):
        print(key)

        if key == 27:
            App.get_running_app().root.current = 'menu_screen'

            return True

I want to do something similar to this, but skip the Textinput.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.