So let me quickly implement the Login page button, right?
The Login page button is just here.
So on_press root.go_to_login.
And that's how, I would call the function.
And so we are in the SignUpScreenSuccess
rule, which means we need to go to the
SignUpScreenSuccess class and define the go_to_login function, self
and of course self.manager.current equal to
the login_screen, which is this one in here.
So we already have that screen, we
don't have to create a new screen.
Now, to save the kivy file and
execute Sign Up, u6, p6,
it doesn't matter what username and
password you Submit, Sign up successful!.
That's a label Login page and it
takes you back to the Login screen.
Now, something to keep in mind is the
direction of the transition of the screens.
So currently by default, the transition is called left.
So you go Sign Up.
So the movement is that, the next
screen is going towards the left.
So u8, p8, now the next screen will go towards the left like that.
And when you go to Login, maybe
you'd want to go to the right.
So to change the transition to
the right, which makes more sense.
So if you want to do that, go
to where you are setting the current screen.
And so we want to change
the transition of the login_screen.
So when we set the current screen
as login, we want that the manager.transition.direction is right,
execute that, Sign up.
I'm just going to Submit some empty strings there, just
to be quick with this, trying out all the interface.
So Submit, then, that's a new user
with empty strings, it doesn't matter.
You can put some restrictions later if you like.
So go to the Login page.
And so this time, the next screen is
coming from the left towards the right.
So if that is what you want, which I
think it makes some sense, then you need to
use this transition, property of the manager property, which
has a direction property and set it to right.
Now that's the idea.