Skip to content
Advertisement

Showing the setup screen only on first launch in kivy

I am trying to make an app with kivy and kivymd but I can’t figure out how I can make the setup screen show up only the first time. This is how the application is going to work: User launches the application after installation and is being shown the sign up/log in screen, And once the user is done with the setup, the setup screens will never appear again unless the user reinstalls the application.

How can I make this happen? Please help and thanks SO much in advance!

Advertisement

Answer

I fixed this problem by creating and reading a “text” file.My “text” file has ‘0’ as a boolean variable .Once the user is done with signing up / logging in , I change that “text” file to ‘1’ ,and in the __init__ func, I check if that file equals to ‘0’ or ‘1’. I’m not sure if this is the correct way or not,but this worked for me.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement