▶️ Watch Entire Kivy Playlist ✅ Subscribe To My RUclips Channel: bit.ly/37LrJ27 bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/2Ls0Fvo
Is this an automatic response because it's not that useful. The particular issue I was facing in my question was not covered on the Kivy course, that's why I asked. I found an answer though: Item1 = self.manager.get_screen('Screen1').ids.item1_id.text Item2 = self.manager.get_screen('Screen2').ids.item2_id.text
Sir don't forget to create a playlist on Android development using kivy.... I am eagerly waiting for this... And thanks for this awesome playlist on kivy 🙌
every tutorial shows how to change between screens with buttons - but theres a lack of information on how to call methods from current screen or other screens once you have screens set up. im so confused
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
For those of you who run into the problem where you can't choose the direction of the transition, the Kivy 2.0.0 documentation states using 'root.manager.transition.direction = 'left/ right' instead, which worked for me.
i tryed to update a list and display the same list. When i only used On_press it only showed the old list, second press was the updated list. When i changed it to On_press "update list" and On_release " Show list" it worked
If you're using a screen manager nested inside a different layout (tabbed, for example), how do you call the next screen? app.root.current doesn't work for me. A tutorial on how to store a variable with one button and then access it elsewhere in the app would also be nice.
i guess you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Still useful to me😁👍just this functionality looks more like “scrolling pages ,one window”, Do you think that something like this can be implemented in one of the AccordionItem tabs?
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Hi John, great introductory material. Say I have screen1, screen2 and screen3, which are all stored in different modules, and I want to display the values from screen1 & screen2 in screen3, how do I go about achieving this?
possibly save as JSON file and retrieve...? this is something I am dealing with also. I am trying to figure out how to use python code to create a window that is not relative, but boxlayout or stacklayout or scrollview...
@@sweeterdeeker9436 The following worked for me, I suppose this is me answering my own question lol: Item1 = self.manager.get_screen('Screen1').ids.item1_id.text Item2 = self.manager.get_screen('Screen2').ids.item2_id.text I hope this is useful to you too Regards Elvy
This is what i used in my .py def build(self): sm = ScreenManager() sm.add_widget(MainWindow(name="main")) sm.add_widget(SecondWindow(name="game")) return sm i didn't use the class WindowManager(ScreenManager) also in the .kv file i removed the Manager setup
ola estou criando um app com kivy porem nao encontro em lugar algum como fazer reconhecer piscada de olho atraves da camera com kivy, vc saberia me ajudar
Guys, here to share my struggles and the solutions in case someone faces the same situation. I've been writing the exact same code but the output was a BLANK BLACK screen. I found out later I had to use " ScreenManager().addwidget(..screen class name..) " and then " return ScreenManager() " in build(self) attribute instead of "return kv". Still wondering why can't I write as simple as the code in this video though.
maybe i just need to learn a bit more but where do you def your functions? I created my mainpage without screenmanager and it worked. now i trying to ge a second page and ik get AttributeError: 'ScreenManager' object has no attribute 'submit'
Hi trying to follow this tutorial where I am confused is if I have code already in my layout(widget) class ( a button press in my kv file), where does the press function go once I remove the original layout class.. (hope this makes sense) thank you
hi what if an app requires more than 10 pages and each having many lines of code, Like if i want to create an ecommerce app? I am able to create basic small apps but if i try to create bigger apps my codes gets dirty!
if you were to have multiple buttons within screens that lead to other screens would you indent them under the window manager?? or do you just list them all out unindented? i.e. WindowManager: First: a: b: Second: a: b:
I already had two Widgets, used as screens, doing what they should be doing. Now I used screen manager and transitions to be able to swap through them without changing my code XD. However, I have a slider in one Widget/Screen. Since I used the screen manager, this slider always shows the value I set it to AND the value 0. It has 2 pointers al of the time. I am also using 2 Buttons to increase or decrease a value, shown on the screen as a label. Since the Screenmanager, this label always shows the current value AND the value it had, when the program was started, so the default value. Both ontop of each other. If I change the screen back to a Widget, both slider and the "label value" function as they should. I googled a lot but cant find a solution. Can someone help me? :)
I might be too late but for those who are looking for the same problem: You have to define your classes (Pythonfile) BEFORE you reference your kv file via Builder. (Sry english is not my 1st language, hope you did understand)
How to use id of a widget in one screen in second screen? eg. One screen has a Text Field and when write your name in that and enter submit, it should go to next screen where it shows your name write in text area.
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Does anyone know how to set the current screen from within a on_press event, in the .py file? I need to check some conditions before allowing the user to go to the next screen, so I need to route from the .py and not the .kv
I am also looking for PY file commands on how to make multiple screens, pass data between those screens, JSON FILE?!?!, and how to make the screen be a boxlayout, or stacklayout and use a for loop to create a button, that is dynamic based on a list, etc.
Hey Bro... how do you skip the slide animation. I mean it still change from screen 1 to screen 2 by pressing the button.. but how to do it without the slide animation. Is theres a way to do that
To skip the sliding animation do this: Step1: First, import this in your kv file: #: import SlideTransition kivy.uix.screenmanager.SlideTransition Step2: Then add this line as the first line under the on_release event: app.root.transition = SlideTransition(duration = 0) Example: Button: text : 'Next Screen' font_size: 36 on_release: app.root.transition = SlideTransition(duration = 0) app.root.current = 'second' Do this for both windows Also if you want to change the slide animation speed, use different values for duration instead of 0.
Sorry I don't know what passport size image is and this is not a tkinter playlist..my tkinter playlist has lots of videos on images and resizing images etc.
▶️ Watch Entire Kivy Playlist ✅ Subscribe To My RUclips Channel:
bit.ly/37LrJ27 bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code
bit.ly/2Ls0Fvo
oh !! I found the comment... but its not pinned i guess..
@@videosincoming6850 Of course it is pinned.
Sir got error of kivy.factory.FactoryException : Unknown class
Is this an automatic response because it's not that useful.
The particular issue I was facing in my question was not covered on the Kivy course, that's why I asked.
I found an answer though:
Item1 = self.manager.get_screen('Screen1').ids.item1_id.text
Item2 = self.manager.get_screen('Screen2').ids.item2_id.text
@@elvy842 What response is that? lol Response to what?
Your explenations are more clear than the Kivy documentation.
Ha yeah they're pretty terrible
Sir don't forget to create a playlist on Android development using kivy.... I am eagerly waiting for this...
And thanks for this awesome playlist on kivy 🙌
Hi, peace be upon you. The same is for android, you just need to have Python on android. All this will work on android
every tutorial shows how to change between screens with buttons - but theres a lack of information on how to call methods from current screen or other screens once you have screens set up. im so confused
The same, bro
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Thank you very much, there is so little conversations and Educations like yours beautiful videos...
I was waiting since 9:00 pm (IST) to watch your video
Cool
For those of you who run into the problem where you can't choose the direction of the transition, the Kivy 2.0.0 documentation states using 'root.manager.transition.direction = 'left/ right' instead, which worked for me.
I have a error that says: object has no attribute 'manager'
Either You Answer Or Not YOU ARE AWESOME MAN!!!!!
Please Pray For My Next Generation That They May Get Me As Their Super Powered Father As You.
:-)
@@Codemycom Mail Please! I Want To Talk With You. Please Don't Make Me Hopeless.
@@elitecoder9246 You're talking to me right here.
@@Codemycom ok my ♥ly tutor
Thank you, Sir, you are Best Teacher
Thanks!
Thank you very much for all the videos that explained kivy 🌹🌹
You are so welcome!
Just Subscribed 😁😁
thanks!
This is very useful for me. Thank you very very much ❤️
Welcome!
Thanks for this awesome video, John. I wanted to ask that what is the difference between, on_release and on_press.
Thanks,
Samad Narayan
Just what they say...one happens when you press the button, the other when you release the button
i tryed to update a list and display the same list.
When i only used On_press it only showed the old list, second press was the updated list.
When i changed it to On_press "update list" and On_release " Show list" it worked
Thnx! Your video's are very helpful to me!
Glad to hear that!
Thank you bro. I like your videos.
Thanks!
If you're using a screen manager nested inside a different layout (tabbed, for example), how do you call the next screen? app.root.current doesn't work for me. A tutorial on how to store a variable with one button and then access it elsewhere in the app would also be nice.
i guess you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Still useful to me😁👍just this functionality looks more like “scrolling pages ,one window”, Do you think that something like this can be implemented in one of the AccordionItem tabs?
Nice!
Please how can we send some data from one screen to another?
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
Why do you have to specify 'app' in
app.root.current
but not in
root.manager.transition.direction?
Thank you very much!!!!
Welcome!
Hi John, great introductory material.
Say I have screen1, screen2 and screen3, which are all stored in different modules,
and I want to display the values from screen1 & screen2
in screen3, how do I go about achieving this?
i belive you need to use the #:import x.y.z command in kivy but i dont know how to use it as it is quite complicated
possibly save as JSON file and retrieve...? this is something I am dealing with also. I am trying to figure out how to use python code to create a window that is not relative, but boxlayout or stacklayout or scrollview...
@@sweeterdeeker9436
The following worked for me, I suppose this is me answering my own question lol:
Item1 = self.manager.get_screen('Screen1').ids.item1_id.text
Item2 = self.manager.get_screen('Screen2').ids.item2_id.text
I hope this is useful to you too
Regards
Elvy
guys please help i can't access my kivymd variable it says " 'super' object has no attribute '__getattr__' "...please help as soon as possible
Hi, great video!
It is possible to use screen manager for add new screens in a popup?
Thanks. helped a lot
Glad it helped
Thank u for this, ive really learn a lot in ur channel, may u make also using animation in kivy or transistion?
animation for what?
Animation on pictures
@@Codemycom thank u for the reply also ☺️
Animation like in PowerPoint slides? I don't think we can do that here
kivy.factory.FactoryException: Unknown class
How to Fix???
This is what i used in my .py
def build(self):
sm = ScreenManager()
sm.add_widget(MainWindow(name="main"))
sm.add_widget(SecondWindow(name="game"))
return sm
i didn't use the class WindowManager(ScreenManager)
also in the .kv file i removed the Manager setup
ola estou criando um app com kivy porem nao encontro em lugar algum como fazer reconhecer piscada de olho atraves da camera com kivy, vc saberia me ajudar
Guys, here to share my struggles and the solutions in case someone faces the same situation.
I've been writing the exact same code but the output was a BLANK BLACK screen.
I found out later I had to use " ScreenManager().addwidget(..screen class name..) " and then " return ScreenManager() " in build(self) attribute instead of "return kv".
Still wondering why can't I write as simple as the code in this video though.
Hello ,how can I disable the minimize , maximize and close buttons in the kivy application
Think you
How to add mddatatable to screen manager
Love and love only💙. Bro can you make a small video for packaging kivy for android in Linux?
Eventually I'll get to that.
How to create .kv file ??
Which version of pycharm you are using ?
Because I use community versions...........
I don't use or recommend pycharm.
👍
Is there any way we can do it in pycharm .......
If yes then please let me know
@@vibhar7999 I don't use or recommend pycharm.
maybe i just need to learn a bit more but where do you def your functions?
I created my mainpage without screenmanager and it worked. now i trying to ge a second page and ik get AttributeError: 'ScreenManager' object has no attribute 'submit'
Does anyone know a way to make the screens just appear instead of scrolling into place?
Please post a video to switch screens with python code.
Hi trying to follow this tutorial where I am confused is if I have code already in my layout(widget) class ( a button press in my kv file), where does the press function go once I remove the original layout class.. (hope this makes sense) thank you
but if am working in app where I have my app how to I do screens ?
hi what if an app requires more than 10 pages and each having many lines of code, Like if i want to create an ecommerce app? I am able to create basic small apps but if i try to create bigger apps my codes gets dirty!
Hello, do you think Python w kivy is good for desktop apps development or There is a better Lang?
namaste sir from india
hello!
Do you have an extensive python code for creating kivy with multiple screens?
something with buttons, etc from a list?
How can I add and call the widget ID inside the child screens?
Find a way?
just throw's errors with kv = Builder.load_file('new_window.kv")" ...
if you were to have multiple buttons within screens that lead to other screens would you indent them under the window manager?? or do you just list them all out unindented? i.e. WindowManager:
First:
a:
b:
Second:
a:
b:
how can I return 2 thing in my app like my widget and my builder
how i can modify time of transition from screen to other screen
How can I hide presplash screen in kivy??
Can someone help me? I copied to code exactly, but I get an error that says there’s no file “new_window.kv”
sounds like you have no file named new_window.kv
how am I suppose to make my text black with no canvas
Best u are
Thanks
this only loads the kv code of the interface and not the .py that are linked to each interface
Amazing
I already had two Widgets, used as screens, doing what they should be doing. Now I used screen manager and transitions to be able to swap through them without changing my code XD. However, I have a slider in one Widget/Screen. Since I used the screen manager, this slider always shows the value I set it to AND the value 0. It has 2 pointers al of the time.
I am also using 2 Buttons to increase or decrease a value, shown on the screen as a label. Since the Screenmanager, this label always shows the current value AND the value it had, when the program was started, so the default value. Both ontop of each other. If I change the screen back to a Widget, both slider and the "label value" function as they should. I googled a lot but cant find a solution. Can someone help me? :)
Can we do this multiple window thing with kivymd?
Hi there. Consistently getting
Unknown class
error. Please help
What did you do differently from the video?
I might be too late but for those who are looking for the same problem: You have to define your classes (Pythonfile) BEFORE you reference your kv file via Builder. (Sry english is not my 1st language, hope you did understand)
How does one set it to give no transitions at all
how can i make this with swiping on a phone?
when do you do root.size vs root.width, root.height?
its appearing black window when using screen maneger in kivy
weird
How to use id of a widget in one screen in second screen? eg. One screen has a Text Field and when write your name in that and enter submit, it should go to next screen where it shows your name write in text area.
you can use the root.manager.get_screen('screen_name').widget_id.parameter (like root.manager.get_screen('main_window').label.text) inside your .kv file
sir can you put a video on how to make the same in python tkinter ?
Hi, you would just use frames with tkinter.
Awesome!
Thanks!
can we do this by creating boxlayout in carousel
try it and see
when are we getting the pop-up window
What do you mean?
Thanks
Welcome!
Does anyone know how to set the current screen from within a on_press event, in the .py file? I need to check some conditions before allowing the user to go to the next screen, so I need to route from the .py and not the .kv
I am also looking for PY file commands on how to make multiple screens, pass data between those screens, JSON FILE?!?!, and how to make the screen be a boxlayout, or stacklayout and use a for loop to create a button, that is dynamic based on a list, etc.
Hey Bro... how do you skip the slide animation. I mean it still change from screen 1 to screen 2 by pressing the button.. but how to do it without the slide animation. Is theres a way to do that
sorry, not sure what you mean
To skip the sliding animation do this:
Step1:
First, import this in your kv file:
#: import SlideTransition kivy.uix.screenmanager.SlideTransition
Step2:
Then add this line as the first line under the on_release event:
app.root.transition = SlideTransition(duration = 0)
Example:
Button:
text : 'Next Screen'
font_size: 36
on_release:
app.root.transition = SlideTransition(duration = 0)
app.root.current = 'second'
Do this for both windows
Also if you want to change the slide animation speed, use different values for duration instead of 0.
Hey it doesnt work for me it says unknow class name
sir please tell how to add functionality of passport size image for user in tkinter form
Sorry I don't know what passport size image is and this is not a tkinter playlist..my tkinter playlist has lots of videos on images and resizing images etc.
I am talking about the image of the scholarship form
Which is on the top of the form where users upload there pic
_______________
! !
! UPLOAD. ! SCHOLARSHIP
! IMAGE. ! FORM
! !
_______________
NAME =
AGE =
CNIC NO. =
ADDRESS=
MOBILE NO. =
etc
Just like this
the scholarship form? lol I have no idea what you're talking about, but I have lots of videos on images on the playlist.
@@Codemycom ok
Someone knows if it's impossible to use MDButtons or other MD component inside a screen, is it possible to use just Button: ?
Of course, you can use any kind of button you want
can i make like this in tkinter without pack forget hack?
kivy is nothing like tkinter
0:00 Yo sup! :D
this code is not in ur github repo ??
of course it is
@@Codemycom but there no link in the comments section or description...
@@videosincoming6850 Yes there is, the first pinned comment.
Not working
Then you did something wrong
@@Codemycom Yes i realized what i did wrong oops :P
Hi
hi