Learn to Make Beautiful Mobile Apps in Python | KivyMD Tutorial - MDDialog (Pop Ups)

  Рет қаралды 11,362

Erik Sandberg

Erik Sandberg

Күн бұрын

Пікірлер
@erik-sandberg
@erik-sandberg 5 жыл бұрын
Also, if your text is too long in the MDDialog widget, it will automatically be scrollable! No need to worry about having too much text there. Next video is on the MDChip widget! Any suggestions after that?
@SZOKE19940321
@SZOKE19940321 4 жыл бұрын
Hi Erik, maybe a tutorial on Dropdown item would be cool, if there isn't any already uploaded :-) Keep up the good work!
@ЕгорПономарёв-п9х
@ЕгорПономарёв-п9х 4 жыл бұрын
Thank you so much for this tutorials, it very help to create truly special and beautiful app!
@exclusivestudios
@exclusivestudios 4 жыл бұрын
For anyone who struggles in making the MDDialog box and binding its buttons due to kivymd's new version, Here's the code : def show_alert_dialog(self): self.dialog = MDDialog( title="Discard", text="If you leave your changes wouldn't be saved", auto_dismiss=False, buttons=[ MDFlatButton( text="CANCEL", text_color=(0, 0, 1, 1), on_release=lambda x: self.dialog_handler(x) ), MDRaisedButton( text="OK", text_color=(1, 0, 0, 1), on_release=lambda x: self.dialog_handler(x) ), ], ) self.dialog.open() def dialog_handler(self, widget): print(widget.__class__.__name__) if widget.__class__.__name__ == "MDFlatButton": print("Canceled") else: print("Delete") That piece of code will bind the button in one condition: the yes button and the no button aren't the same widget class!
@wavecycle
@wavecycle 5 жыл бұрын
Thank you for doing all of these, it is a HUGE help!
@pythatronics4272
@pythatronics4272 4 жыл бұрын
hello Eric ! Thank u for your videos. i would like to ask one question. can u make a video regarding input data post to one page and save and display in next page using kivymd ?
@Александр-р3э3м
@Александр-р3э3м 4 жыл бұрын
Thanks a lot! That's great that someone on KZbin makes such cool videos.
@ebitdaddyca3676
@ebitdaddyca3676 Жыл бұрын
I am just wondering how you got your text centered by default as mine is to the left and the buttons to the right. Perhaps the MDDIalog has seen changes in the last years?
@Iamzaidmnr
@Iamzaidmnr 4 жыл бұрын
Thank You So So So Much!!! I was having a big problem with the dialog box :)
@nylablue6494
@nylablue6494 5 жыл бұрын
I need to make auser profile page. I'm not sure how to get the users information from sign up screen and post on the users profile page
@noobyxviii
@noobyxviii 3 жыл бұрын
why cant i import mdinputdialog?
@aavalos163
@aavalos163 Жыл бұрын
I am having the same problem
@josephkuria7557
@josephkuria7557 3 жыл бұрын
Latest version of mddialog does not allow height change. Please help
@lazarusmwangi2025
@lazarusmwangi2025 4 жыл бұрын
Hey @Erik. Is there a way to make custom widget inside dialog box? Like adding gridlayout with buttons. Something like that.
@erik-sandberg
@erik-sandberg 4 жыл бұрын
You can create your own widget by subclassing the BaseDialog widget. KivyMD's BaseDialog widget is basically just a nice looking BoxLayout.
@tonyhoch3252
@tonyhoch3252 3 жыл бұрын
Erik, been struggling with this.. any ideas? I am using the type="confirmation" from the MDDialog documentation: kivymd.readthedocs.io/en/latest/components/dialog/index.html I cannot figure out how to get the text from the item that the user selects. For example, if someone chose the first item, "Callisto", how do you get "Callisto" back from that chosen item? I tried using the checkbox's text (check.text) but it did not work. Thanks for the help.
@pysuhayb15
@pysuhayb15 5 жыл бұрын
Thank you Erik they were amazing Pls can you make a vedio with kivymaps and GPS
@siderealvictor9813
@siderealvictor9813 3 жыл бұрын
Why the buttons are not showing?
@fokoshia3055
@fokoshia3055 3 жыл бұрын
Plz solve the problem of jpg mp4 file handling with kivymd
@baumths
@baumths 4 жыл бұрын
Hey Erik! The MDDialog changed in newer versions of kivymd. I can't get to figure out how to get the buttons (in the buttons list from the class) feed from dialog, like... I click the buttons and nothing happens. Any advice? Keep the great work!
@4wobi
@4wobi 4 жыл бұрын
Hey I tried this, maybe it helps a bit def show_Dialog(self): self.dialog = MDDialog( title="Discard", text="If you leave your changes wouldn't be saved", auto_dismiss=False, buttons=[ MDFlatButton( text="CANCEL", text_color=self.theme_cls.primary_color, on_release=self.dialog_handler ), MDFlatButton( text="OK", text_color=self.theme_cls.primary_color, on_release=self.dialog_handler ), ], ) self.dialog.open() def dialog_handler(self, widget): print(widget)
@baumths
@baumths 4 жыл бұрын
@@4wobi Thanks, helped a lot! Got it working using on_release= lambda. :D
@4wobi
@4wobi 4 жыл бұрын
@@baumths glad it helped :)
@nylablue6494
@nylablue6494 5 жыл бұрын
Amazing videos.
Kivy Core Concept - Using an `id` to Reference a Widget
9:30
Erik Sandberg
Рет қаралды 16 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Kivy Trick: Rounded Button Edges and more
8:46
Samuel Courses
Рет қаралды 24 М.
Create a scrollview with a list of items in KIVYMD
12:03
How to make Password(Hidden) Text Inputs in Kivy - Full Guide
15:51
Build "Task Manager" Mobile App with Kivy Framework / Python
1:13:27
KivyMD Tutorial - Using a Navigation Drawer to Change Screens
8:06
Erik Sandberg
Рет қаралды 48 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН