How To Create Popup Boxes For Kivy - Python Kivy GUI Tutorial #30

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024

Комментарии • 78

  • @SultopianTV
    @SultopianTV 3 года назад +3

    Amazing content, you have helped me a lot. One of the best recourses for learning kivy easily online. Great job!

    • @Codemycom
      @Codemycom  3 года назад +1

      Glad you’re enjoying it!

  • @florinbujoreanu1020
    @florinbujoreanu1020 5 месяцев назад

    Thank you!! Needed this one badly.

  • @RevitGord
    @RevitGord 3 года назад

    Thanks so much for the video. I have actually learnt from the Factory module today.

  • @learnnow9598
    @learnnow9598 3 года назад +1

    Was waiting for your next kivy video 💙

    • @Codemycom
      @Codemycom  3 года назад +1

      Every Monday, Wednesday, and Friday always

  • @tuorectors7102
    @tuorectors7102 3 года назад +2

    Your video help meh a lot for creating a modern app with python. I feel guilty that these tutorials are free.

    • @Codemycom
      @Codemycom  3 года назад +4

      Ha, sign up for Codemy.com if you'd like to help your conscience :-p

    • @tuorectors7102
      @tuorectors7102 3 года назад +3

      @@Codemycom Alright for sure! Worth content!

  • @rajaryan7167
    @rajaryan7167 3 года назад +1

    always waiting for your video

    • @Codemycom
      @Codemycom  3 года назад

      Hope you enjoyed it!

  • @Codemycom
    @Codemycom  3 года назад +2

    ▶️ 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/3hHXz2L

  • @infinitespace1982
    @infinitespace1982 3 года назад +5

    I have a question: When I create a popup in kivy file inside a class that was created in python file and within that popup I create a button, it gives an error saying the popup has no attribute 'update(self)' which is the command I use for the button using on_press event.

  • @storageaccountiii8917
    @storageaccountiii8917 3 года назад +1

    Who uses 9GAG. lets carry this guy to the topssssss... Indians help!

  • @danielmapfidza8354
    @danielmapfidza8354 10 месяцев назад

    Hie John. Great tutorials, I have been following and find your courses very helpful. I have a question, I am trying to create an app which uses a popup box. The popup box should have different text on the label depending on user interaction. Eg it says you selected pepperoni or you selected cheese. I tried updating the label as you once taught but I'm getting an error:
    AttributeError: 'super' object has no attribute '__getattr__'. Did you mean: '__setattr__'?

  • @ghatfan99
    @ghatfan99 Год назад

    very useful, thanks a lot

  • @sarithaac95
    @sarithaac95 2 года назад

    Hi sir, I am a beginner to kivy...Your class helped me a lot...Thank you so much...I tried to do pop ups and screen manager,,...but it gives popup exception ...I have a single button in MyPopup(But working perfectly with widget class)...I will be greatful if you give me a solution...thank you

  • @nihalthannegedarapremaratn2352
    @nihalthannegedarapremaratn2352 3 года назад

    Great... Thanks you...waiting for database....with kivy

  • @hiwab41
    @hiwab41 3 года назад

    It looks like the old android and it’s so cool!

  • @Neilcourtwalker
    @Neilcourtwalker 2 года назад

    Thanks a lot for your helpful Turorials. I didn't find exception handling in your playlist or do you adress it in one of your videos? I wanted a popup box for a wrong input in a lable, but the standard python way of handling exceptions within a method in class MyGrid(Widget): did not work. Thanks in advance for any tips/hints.

  • @dream-on-rds
    @dream-on-rds 3 года назад

    Great Tutorials

  • @fredericroland8204
    @fredericroland8204 3 года назад

    Thank you John!

  • @idk____idk6530
    @idk____idk6530 3 года назад +4

    Sir can you make a Playlist on pygame please and Happy New year to you 🎉🎊

    • @Codemycom
      @Codemycom  3 года назад +1

      Yep, planning on it

    • @idk____idk6530
      @idk____idk6530 3 года назад

      @@Codemycom so when we accept the first video of pygame 🙂

    • @Codemycom
      @Codemycom  3 года назад +1

      @@idk____idk6530 soon

  • @nauerderbube733
    @nauerderbube733 3 года назад

    Great content as always!:D

  • @porte_bosho
    @porte_bosho 3 года назад

    You can also make Tuto for Kivy merarial design with kivy

  • @natiqueibrar1921
    @natiqueibrar1921 3 года назад

    Hi John, As always a amazing video. Can you teach us how to use popup with conditions. I have trouble understanding it ! Peace and Take Care

    • @Codemycom
      @Codemycom  3 года назад +1

      What do you mean?

    • @natiqueibrar1921
      @natiqueibrar1921 3 года назад

      @@Codemycom I mean like if one textinput is empty and the user press the submit button then a popup should appear telling the user to fill one area of the form. I hope you understand !

  • @opensourcesabout8128
    @opensourcesabout8128 4 месяца назад

    why does popup does not run with screenmanager when it is in the same kv files ?

  • @WolfKrugerr
    @WolfKrugerr 2 года назад

    How to launch functions by buttons on_release? It writes that MyPopup has no atribute 'my function name'.

  • @Istaticfirel
    @Istaticfirel 3 года назад

    Hello John. Thank you for great videos on kivy.
    Is it possible to use a popup with text input to create a new label /change text of a label in another class or are my headaches in vain?

    • @jayroi1814
      @jayroi1814 2 года назад +1

      Anything's possible when your brain actually works.

  • @FrancescoTormene
    @FrancescoTormene Год назад

    When i try to execute this code i get an error:
    in on_release: Factory.MyPopup.open()
    TypeError: ModalView.open() missing 1 required positional argument: 'self'
    Please i need help.

  • @yusufyaseen476
    @yusufyaseen476 3 года назад

    hey!!
    Will you explain pyqt soon ??
    And if you don't explain it, nominate good RUclips resources to learn

    • @Codemycom
      @Codemycom  3 года назад

      It's on my list of things to do

    • @yusufyaseen476
      @yusufyaseen476 3 года назад

      @@Codemycom i can not find pyqt .
      I find only tkinter
      Send me link please

    • @yusufyaseen476
      @yusufyaseen476 3 года назад

      Please send me a link for pyqt
      And tell me either complete in tkinter or transfer to pyqt ..?
      And please send me a link for pyqt as o can not find it
      Thanks a lot❤

    • @Codemycom
      @Codemycom  3 года назад

      @@yusufyaseen476 on my list of things to do...not playlist

  • @winnybatard.3374
    @winnybatard.3374 2 года назад +1

    I tried to import Factory the way you showed and it says illegal import in Kivy. Any suggestion?

    • @danielmapfidza8354
      @danielmapfidza8354 10 месяцев назад

      When I had a similar error, I noticed that I had capitalized Import instead of import

  • @vamprock02
    @vamprock02 3 года назад +1

    Sir I am having an error when I create a button in the popup section
    it gives me error : kivy.uix.popup.PopupException: Popup can have only one widget as content
    plzz ans .Thanks you

    • @caru_marco_
      @caru_marco_ 3 года назад

      same me @Codemy.com
      When I inserted the Button before the BoxLayout the program gave me the same error.
      As well, if i insert the BoxLayout before.
      I was planning to insert the filechooser on the popup, but I still struggle to insert one more button or label.

    • @rreemmccoo1
      @rreemmccoo1 2 года назад

      Some one else in the comments found the awnser. Try commenting out your " #Builder.load_file(file.kv)". Your file can load double and bacause of that i think Popup will think there are two buttons instead of one

  • @storageaccountiii8917
    @storageaccountiii8917 3 года назад

    I have a question. I tried to tweak the code and tried to make a tab open with the popup but I could not achieve it. Is it not possible to use methods with popup button?

  • @wardahambreen2493
    @wardahambreen2493 3 года назад

    sir please tell how to add functionality of passport size image for user on tkinter form

  • @suchetmahamuni6682
    @suchetmahamuni6682 3 года назад +1

    Hi
    Actually where you have done the code in line 19, the code on release:root.dismiss()
    now my question is that I am not being able to access the function of the python file which I have created, I tried root.myfunction() but shows the error
    AttributeError: 'mypopup' object has no attribute 'myfunction'
    i even checked the documentation but it does not have any answer to my question
    Please could you help me out with that?

  • @lingeshwaran511
    @lingeshwaran511 3 года назад +1

    ❤️❤️

  • @gabrielaiello9993
    @gabrielaiello9993 3 года назад

    Hi i have a problem when i build a button , Python return me : popup can have only one widget as content . Anyone know how i can resolve ?

    • @altaaf_taafuuu08
      @altaaf_taafuuu08 2 года назад +1

      Hello. Peace be upon you. Yes you can do. Just nest a layout in popup widget. I have tried it

  • @pimysoft2896
    @pimysoft2896 3 года назад

    Can you animate the popup kind of coming into the screen?

  • @thenaturat666
    @thenaturat666 3 года назад

    Hi John. I'm getting an exception caused by Button on popup box. I've checked the code couple of times and i cant see any mistake. This Exception is: Popup can have only one widget content. I've watched this part of Your video couple of times and i can't fix it. Do You have any ideas whats causing this exception? Below You have code from my popup.kv file. Thanks in advance for Your help.
    #:import Factory kivy.factory.Factory
    auto_dismiss: False
    title: "This is a popup box"
    Button:
    text: "Close Me!"
    font_size: 24
    on_release: root.dismiss()

    • @thenaturat666
      @thenaturat666 3 года назад

      Everything works before adding this button on popup

    • @thenaturat666
      @thenaturat666 3 года назад +2

      OK, i found it. My popup.kv file was loaded twice because I used Builder and also named may app PopupApp. When the App name is different it works fine, with name PopupApp and commented Builder it also works ;)

    • @Codemycom
      @Codemycom  3 года назад

      glad you found it

  • @weightsoccer123
    @weightsoccer123 3 года назад

    Is there a way for a pop up box to be opened by a function in a python file?

    • @Codemycom
      @Codemycom  3 года назад +1

      Of course.

    • @weightsoccer123
      @weightsoccer123 3 года назад

      @@Codemycom I’m struggling figuring out how to do that. Could you explain on how you would do that?

    • @Codemycom
      @Codemycom  3 года назад

      @@weightsoccer123 I have videos on the playlist that do that

  • @rreemmccoo1
    @rreemmccoo1 2 года назад

    I want to use a popup() to add a player(TextInput) and gender(radio checkbox) to my mainpage. But i am trying for days to get the output from my popup to work.
    In my main.py i have:
    class AddPlayer:
    Pass
    Class MyLayout:
    Pass
    (And the code to even start (return MyLayout))
    .kv
    A working Popup here
    And a working close button
    A working layout with a working popup button

    • @altaaf_taafuuu08
      @altaaf_taafuuu08 2 года назад

      You can try using a layout and nesting other in it, if you want. Because it says you can have only one widget