1
00:00:00,510 --> 00:00:03,960
So let me quickly implement the Login page button.

2
00:00:05,610 --> 00:00:05,870
Right.

3
00:00:06,510 --> 00:00:08,780
The login page button is just here.

4
00:00:09,410 --> 00:00:19,490
So on_press: root.go_to_login(), and that's how I'd call the function.

5
00:00:19,970 --> 00:00:27,020
And so we are in the SignUpScreenSuccess rule, which means we need to go to the SignUpScreenSuccess

6
00:00:27,020 --> 00:00:34,460
class and define the go_to_login function self.

7
00:00:36,510 --> 00:00:46,210
And of course, self.manager.current equal to the login_screen, which is

8
00:00:46,230 --> 00:00:47,070
this one in here.

9
00:00:47,790 --> 00:00:49,200
So we already have that screen.

10
00:00:49,200 --> 00:00:50,850
We don't have to create a new screen now.

11
00:00:52,500 --> 00:00:55,590
Save the Kivy file and execute.

12
00:00:56,160 --> 00:00:59,480
Sign up, u6, b6.

13
00:00:59,520 --> 00:01:02,280
It doesn't matter what username and password you submit.

14
00:01:02,910 --> 00:01:03,270
Sign up

15
00:01:03,270 --> 00:01:03,900
successful!

16
00:01:03,900 --> 00:01:05,580
That's the label, the login page.

17
00:01:05,670 --> 00:01:08,430
And it takes you back to the logging screen.

18
00:01:09,720 --> 00:01:15,570
Now, something to keep in mind is the direction of the transition of the screens.

19
00:01:15,990 --> 00:01:20,460
So currently, by default, the transition is called left.

20
00:01:21,000 --> 00:01:22,850
So you go to sign up.

21
00:01:23,900 --> 00:01:30,230
So the movement is that the next screen is going towards the left.

22
00:01:30,890 --> 00:01:34,260
So u8, p8.

23
00:01:34,370 --> 00:01:38,440
Now the next screen will go towards the left like that.

24
00:01:39,050 --> 00:01:43,280
And when you go to Login, maybe you'd want to go to the right.

25
00:01:44,130 --> 00:01:48,830
So to change the transition to the right, which makes more sense.

26
00:01:49,310 --> 00:01:54,500
So if you want to do that, go to where you are setting the current screen.

27
00:01:55,050 --> 00:01:59,300
And so we want to change the transition of the login screen.

28
00:02:00,110 --> 00:02:08,840
So when we set the current screen as log-in, we want that manager.transition.direction

29
00:02:09,920 --> 00:02:11,630
is right.

30
00:02:13,310 --> 00:02:13,750
Execute

31
00:02:13,810 --> 00:02:14,060
that.

32
00:02:15,050 --> 00:02:15,810
Sign up.

33
00:02:17,490 --> 00:02:24,210
I'm just going to submit some empty streams there just to be quick with this trying out of the interface.

34
00:02:24,610 --> 00:02:27,630
So I submit that that's a new user with empty strings.

35
00:02:27,690 --> 00:02:28,440
It doesn't matter.

36
00:02:28,740 --> 00:02:31,170
You can put some restrictions later, if you like.

37
00:02:31,880 --> 00:02:33,570
So go to the login page.

38
00:02:34,640 --> 00:02:38,760
And so this time the next screen is coming from the left towards the right.

39
00:02:40,120 --> 00:02:47,320
So if that is what you want, which I think it makes some sense, then you need to use this transition

40
00:02:47,410 --> 00:02:52,120
property of the manager property, which has a direction property and set it to

41
00:02:52,120 --> 00:02:52,810
right.

42
00:02:53,320 --> 00:02:54,230
That's the idea.

