1 00:00:00,490 --> 00:00:06,340 So let me quickly implement the Login page button, right? 2 00:00:06,341 --> 00:00:09,236 The Login page button is just here. 3 00:00:09,237 --> 00:00:17,533 So on_press root.go_to_login. 4 00:00:17,770 --> 00:00:19,860 And that's how, I would call the function. 5 00:00:19,861 --> 00:00:23,533 And so we are in the SignUpScreenSuccess 6 00:00:23,534 --> 00:00:26,500 rule, which means we need to go to the 7 00:00:26,501 --> 00:00:34,733 SignUpScreenSuccess class and define the go_to_login function, self 8 00:00:36,233 --> 00:00:42,110 and of course self.manager.current equal to 9 00:00:42,111 --> 00:00:47,584 the login_screen, which is this one in here. 10 00:00:47,585 --> 00:00:49,408 So we already have that screen, we 11 00:00:49,409 --> 00:00:51,248 don't have to create a new screen. 12 00:00:51,249 --> 00:00:54,692 Now, to save the kivy file and 13 00:00:54,693 --> 00:00:58,933 execute Sign Up, u6, p6, 14 00:00:58,934 --> 00:01:01,188 it doesn't matter what username and 15 00:01:01,189 --> 00:01:03,918 password you Submit, Sign up successful!. 16 00:01:03,919 --> 00:01:06,008 That's a label Login page and it 17 00:01:06,009 --> 00:01:08,420 takes you back to the Login screen. 18 00:01:09,510 --> 00:01:12,232 Now, something to keep in mind is the 19 00:01:12,233 --> 00:01:15,938 direction of the transition of the screens. 20 00:01:15,939 --> 00:01:20,892 So currently by default, the transition is called left. 21 00:01:20,893 --> 00:01:23,160 So you go Sign Up. 22 00:01:23,690 --> 00:01:26,780 So the movement is that, the next 23 00:01:26,781 --> 00:01:30,380 screen is going towards the left. 24 00:01:31,150 --> 00:01:38,864 So u8, p8, now the next screen will go towards the left like that. 25 00:01:38,865 --> 00:01:41,412 And when you go to Login, maybe 26 00:01:41,413 --> 00:01:43,440 you'd want to go to the right. 27 00:01:44,370 --> 00:01:46,068 So to change the transition to 28 00:01:46,069 --> 00:01:49,156 the right, which makes more sense. 29 00:01:49,157 --> 00:01:51,956 So if you want to do that, go 30 00:01:51,957 --> 00:01:54,950 to where you are setting the current screen. 31 00:01:54,951 --> 00:01:57,064 And so we want to change 32 00:01:57,065 --> 00:01:59,366 the transition of the login_screen. 33 00:01:59,990 --> 00:02:02,216 So when we set the current screen 34 00:02:02,217 --> 00:02:11,866 as login, we want that the manager.transition.direction is right, 35 00:02:12,763 --> 00:02:16,120 execute that, Sign up. 36 00:02:17,210 --> 00:02:20,592 I'm just going to Submit some empty strings there, just 37 00:02:20,593 --> 00:02:24,438 to be quick with this, trying out all the interface. 38 00:02:24,439 --> 00:02:26,518 So Submit, then, that's a new user 39 00:02:26,519 --> 00:02:28,688 with empty strings, it doesn't matter. 40 00:02:28,689 --> 00:02:31,684 You can put some restrictions later if you like. 41 00:02:31,685 --> 00:02:33,840 So go to the Login page. 42 00:02:34,370 --> 00:02:36,452 And so this time, the next screen is 43 00:02:36,453 --> 00:02:38,960 coming from the left towards the right. 44 00:02:39,890 --> 00:02:42,628 So if that is what you want, which I 45 00:02:42,629 --> 00:02:45,348 think it makes some sense, then you need to 46 00:02:45,349 --> 00:02:49,956 use this transition, property of the manager property, which 47 00:02:49,957 --> 00:02:53,188 has a direction property and set it to right. 48 00:02:53,189 --> 00:02:54,666 Now that's the idea.