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?
@SZOKE199403214 жыл бұрын
Hi Erik, maybe a tutorial on Dropdown item would be cool, if there isn't any already uploaded :-) Keep up the good work!
@ЕгорПономарёв-п9х4 жыл бұрын
Thank you so much for this tutorials, it very help to create truly special and beautiful app!
@exclusivestudios4 жыл бұрын
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!
@wavecycle5 жыл бұрын
Thank you for doing all of these, it is a HUGE help!
@pythatronics42724 жыл бұрын
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м4 жыл бұрын
Thanks a lot! That's great that someone on KZbin makes such cool videos.
@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?
@Iamzaidmnr4 жыл бұрын
Thank You So So So Much!!! I was having a big problem with the dialog box :)
@nylablue64945 жыл бұрын
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
@noobyxviii3 жыл бұрын
why cant i import mdinputdialog?
@aavalos163 Жыл бұрын
I am having the same problem
@josephkuria75573 жыл бұрын
Latest version of mddialog does not allow height change. Please help
@lazarusmwangi20254 жыл бұрын
Hey @Erik. Is there a way to make custom widget inside dialog box? Like adding gridlayout with buttons. Something like that.
@erik-sandberg4 жыл бұрын
You can create your own widget by subclassing the BaseDialog widget. KivyMD's BaseDialog widget is basically just a nice looking BoxLayout.
@tonyhoch32523 жыл бұрын
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.
@pysuhayb155 жыл бұрын
Thank you Erik they were amazing Pls can you make a vedio with kivymaps and GPS
@siderealvictor98133 жыл бұрын
Why the buttons are not showing?
@fokoshia30553 жыл бұрын
Plz solve the problem of jpg mp4 file handling with kivymd
@baumths4 жыл бұрын
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!
@4wobi4 жыл бұрын
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)
@baumths4 жыл бұрын
@@4wobi Thanks, helped a lot! Got it working using on_release= lambda. :D