Creating A Login Screen With KivyMD - Python Kivy GUI Tutorial #44

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

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

  • @rockyrocky7122
    @rockyrocky7122 2 года назад +7

    Hello Sir, I write exactly the same code which you have written, but in my .kv file while using "MDTextFieldRound", giving this error - kivy.factory.FactoryException: Unknown class . I am new to kivy programming so not able to figure it out. if I use "MDTextFieldRect" it works fine. Is this the Python version Issue ? Or I have not included any class ?
    Please HELP. Thanks

    • @nitronjoe6233
      @nitronjoe6233 2 года назад +11

      HI kivy has changed since, to get a round textbox you must identify it as
      ''
      MDTextField:
      mode: "round"
      ''
      This will create round text box, hope this helps!

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

      thanks @@nitronjoe6233. this help me to solve my problem

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

      @@nitronjoe6233 Thanks a lot, your answer really help me

    • @lucaskaram8035
      @lucaskaram8035 Год назад +1

      @@nitronjoe6233 Thanks for that comment , i was having the same issue

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

    Can you do one with logging in with Google or with using biometrics for more security? Thanks.

  • @sithuhtun3609
    @sithuhtun3609 3 года назад +11

    John. Please make a video about the navigation drawer in kivy. I think the navigation drawer is useful. Thank you so much!

  • @laveshpal9610
    @laveshpal9610 2 года назад +4

    elevation (shadow) is not working even if I copy paste your code. In IDE a Warning Message Show every time I run the code (If you see this error, this means that either youre using `CommonElevationBehavio`r directly or your 'shader' dont have a `_draw_shadow` instruction, remember to overwrite this functionto draw over the image context. Тhe figure you would like. Or your class MDCard is not inherited from any of the classes ('CommonElevationBehavior', 'RectangularElevationBehavior', 'CircularElevationBehavior', 'RoundedRectangularElevationBehavior', 'ObservableShadow', 'FakeRectangularElevationBehavior', 'FakeCircularElevationBehavior')

    • @СБИСБЕЗВОДЫ
      @СБИСБЕЗВОДЫ 2 года назад +1

      Starting from the KivyMD 1.0.0 library version, it is necessary to manually inherit the card class from one of the Elevation classes from kivymd/uix/behaviors/elevation.py module to draw the card shadow.
      Must add to python file:
      from kivymd.uix.behaviors import RoundedRectangularElevationBehavior
      from kivymd.uix.card import MDCard
      class MD3Card(MDCard, RoundedRectangularElevationBehavior):
      '''Implements a material design v3 card.'''
      And replace in login.kv MDCard to MD3Card

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

      @@СБИСБЕЗВОДЫ pls I really need ur help
      U said implement are material design I did it but is not working

  • @anishchowdarychitturi3419
    @anishchowdarychitturi3419 2 года назад +2

    got an error when writing MDTextFieldRound saying this raise FactoryException('Unknown class ' % name)
    kivy.factory.FactoryException: Unknown class please help me how to fix this

    • @willmurphy8650
      @willmurphy8650 Год назад +1

      It does not exist anymore. Add to MDTextField: mode: "round"

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

    Love the video. Keep up the good work John!

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

      Thanks for watching!

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

    John Can you tell me how to change the text color of the kv file please? I searched on google but I didn't not find answer. It's look wired with the plain text.

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

      Update Sublime Text With This:
      packagecontrol.io/packages/Kivy%20Language

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

      @@Codemycom Thank you so much😊

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

    Although you explain quickly, the explanation is interesting, so I understand everything even though I am not a programmer. Thank you

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

      Glad to hear

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

      @@Codemycom I'm waiting for my smart card and I will get it soon,, hopefully this time work with your conditions ,so I be able to enroll with your courses.

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

      @@hossienhassanhamow3489 Awesome

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

    Hi, I just want to know if you have a video where you are on the login page in python kivy and if you click sign up then the sign up page will appear on the screen made in python kivy. Please help cant find any resource to do that or any other video. Other videos are telling me how to gather data from text boxs when user clicks the submit button but what I need is if I click signup on the login page it should take me to an exsisting sign up page I have created using python kivy. Thanks

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

    can u pls tell me how can i access data from a text field when there are multiple screens , it's urgent i have a deadline and i m stuck here
    it made the function in the class of the screen but it says that it doesn't have an attribute root but putting the function in the main app class wouldn't work either

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

    how to we improve password textfield input? how can we make appear password when clicked right icon?

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

    Could you make a tutorial on actually installing an app on iPhone/Android

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

    thanks for your great tutorial, can we make an app half in tkinter half in kivy, i mean can we mix kivy and tkinter?

  • @milslion863
    @milslion863 3 месяца назад

    hi. Where i can get the code? in the video you talk about a pin comment but i dont see it anymore? Thanks!

  • @james.1993
    @james.1993 3 года назад +2

    Sir, can you create a Login screen with Kivy only and not KivyMD? I love to create login screen that logs only when verified in mysql database.

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

      Tell me if you get this working?

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

    How to change the top window border dark,Mine stays white all the time.My system dark mode is turned on.But it doesn't change anything.

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

    If you would make a app using kivy and kivy md with database and would you use maps in that app

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

      Yes I'll do database stuff one of these days

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

    After login and going to another screen(another class) how can I get the username and password, which the user entered?

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

    how can we add additional features to apk files(like android supports etc) beyond what buildozer provides.

  • @MEHEDIHASAN-kx6ok
    @MEHEDIHASAN-kx6ok 3 года назад +1

    I have a question how to add on press function with for loop

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

      In the exact same way...just when you write your function, write whatever for loop you want..

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

    i tried combining the multiple windows and this password screen but it is giving me an error. it would be awesome if you could make a video on that

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

      same for me, did you get any solutions?

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

    Is there a way to make a gradient color on a label or something?

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

    I'll appreciate a video on changing screen via button press

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

    Hi John! Getting an error about ids and that it defaults to an empty dict? Any help, please? :)

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

    How you add multiple teminal

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

    I'm having an error message if i put MDRoundFlatButton, but if i only put button it works. Do you have any solution John?

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

      You're probably misspelling MDRoundFlatButton or something

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

    Thanks, keep up with the good work, you're awesome

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

      Thanks! And thanks for watching!

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

    It showing me an error
    Is says kivy.factory. factoryExpection: unknown class

  • @pranavkrishna.s1127
    @pranavkrishna.s1127 3 года назад

    John how do you get syntax completion in Sublime Text?

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

      It works by default...there's nothing you have to do. Just save your file so it knows what language you're working with...

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

    how can we archive performance like flutter in python kivy and how can we improve UI in kivy

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

    I copied all your code but it has error " kivy.factory.FactoryException: Unknown class ". How can i fix it?

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

      You didn't copy the code correctly. Compare it to the video and discover what you did wrong.

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

    Please response.I have big trouble ASAP!!! I need your help to install Kivy in Linux Mint 20.1 Ulyssa.I've tried many times,and I still stuck.

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

      Did you follow the instructions on the kivy website?

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

    hey men, i really like your videos, but i have a quiestion: What if i want to call a function () in de kivy file......but not with a button just call the function from la LABEL or a Widget , that function is in my PY File. Best regards

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

    Is it good to learn from the Kivy documentation?

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

      It's good to learn any way you can

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

    Very good! Is there any way to delay password masking ??

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

      I don't know what delay password masking is lol

  • @pro_fessor.
    @pro_fessor. Год назад

    How to toggle password visibility,

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

    I love the videos you are making. how did you setup sublime to autocomplete *.kv files

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

      packagecontrol.io/packages/Kivy%20Language

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

    Hello sir! I have done python programming in jupyter notebook for crop prediction using random forest algorithm technique. Can I build an app using Kivy by uploading the same code. Please do tell me.

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

      Not the exact code, you'll have to modify it slightly to fit with kivy

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

      Yes sir...!! It showing error like no module named 'pandas' in Kivy when I'm running it.. but I have installed pandas in Kivy

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

      It's a humble request please do help me sir

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

      @@sivanandkaranam4515 You don't install pandas in kivy, you install it in your virtual environment.

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

      @@Codemycom yes sir but I installed pandas in venv only..!!

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

    But is it Monday Morning?

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

    Great Job! Many Thx!. Can you make a movie about how to make graphs or matplot lib???

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

    Great video .... John ... Can u make aa video 1hr of making app with kivymd with backend with django. If yes then it's great.... Btw love ur hardwork .... Keep it up

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

      Django is a web framework...it doesn't really go with kivy in any way...

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

      @@Codemycom any other backend which work with KivyMd

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

      @@TWFSHOW For what? Any database will work to save data

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

    Hey great video man. I enjoy every bit of your tutorials. can you please also make video for dropdown menu using kivyMD?

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

    how to lock potrait screen for android in kivy?

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

    for some reason the line - self.root.ids.welcome_label.text = f'Sup {self.root.ids.user.text}!' - doesn't work, and it says raise BuilderException(rule.ctx, rule.line. do any of you have any idea why? thanks!

    • @f.a.2980
      @f.a.2980 Год назад

      Apparently that changed in most recent kivymd versions, I have the same problem, if you find a solution please let me know

    • @Sayied-s7d
      @Sayied-s7d 7 месяцев назад

      did you find the solution

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

    Will you do a video on Kivy mvc pattern

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

    Thanks so good for project but also can you show some tutorials to use kivy with MySQL

  • @pranavkrishna.s1127
    @pranavkrishna.s1127 3 года назад

    For some reason the welcome label is black. Why though?

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

      What did you do differently?

    • @pranavkrishna.s1127
      @pranavkrishna.s1127 3 года назад

      @@Codemycom Nothing else. I just followed your code. Now I'm starting to think that it's something with the KivyMD versions

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

      @@pranavkrishna.s1127 No, you have a typo somewhere

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

    mdtext field deosn't accept any input

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

    are you using vscode?

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

      No, sublime text and git bash

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

    very nice, thanks , like so much ...

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

    Why am I getting this error ?
    AttributeError: 'super' object has no attribute '__getattr__'

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

      You have an error in your code somewhere. Rewatch the video and check your code.

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

      Is there something to do with the screen manager and 3 screens in the kv file I'm using for my app?

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

      When I use a kv file with only login page codes it works like a charm but when I use it as one of the screens of my app with screen manager an error is raised

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

      Sir I'm the same person, I couldn't comment with that account anymore absolutely have no idea why.
      I got the solution for it

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

      Btw sir we have been given a group assignment from our school to develop an app, we chose kivy as the framework and your lectures have been a huge help for us! :)

  • @kjelltoresteiro7921
    @kjelltoresteiro7921 9 месяцев назад

    Seem like MDTextFieldRound is removed from KivyMD
    Alternative:
    MDTextField:
    mode: "round"
    id: user
    hint_text: "Username"

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

    Im having this error anyone help me? thanks
    TypeError: Cannot convert kivy.properties.NumericPropertyStorage to kivy.properties.BoundedNumericPropertyStorage

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

    Bro kivy md is additional module

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

    Very cool login screen!

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

    how to make "eye on" function?

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

      sorry I don't know what you mean

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

      how to give function an kivymd "EYE OFF" icon?

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

      @@codinglibrary6456 Sorry, I don't understand. Functions are functions...they don't have icons...they're code.

  • @user-hk7wh9jm7l
    @user-hk7wh9jm7l 3 года назад

    Would be awesome if you could show us how to interact with a browser through kivy

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

    self.root.ids.welcome_Label.text = f'Sup {self.root.ids.user.text}!' it dosent work how can I solve this problem

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

      What error are you getting?

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

    you know that you are saving me, aren't ya ?

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

    Bro please how we make login page in pycharm

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

      pycharm sux...and the code doesn't change depending on your IDE.

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

    Teacher n ° 1 😊

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

    i have f-string issue :/
    self.root.ids.welcome_Label.text = f 'Sup {self.root.ids.user.text}!'

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

      What issue?

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

      not welcome_Label but with lower case welcome_label

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

    Thank you sir

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

    Thank you so much!!!!!!!!

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

    Sir, how to convert kivy project to apk.file and install it on mobile🙄 🙄🙄

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

      will get to that one of these days

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

    Que coisa mais lindaaaaaaaaaaaaaaaa

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

    I think enough tkinter and upload for kivy instead

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

      No thanks :-) Kivy every Monday, Tkinter every Tuesday.

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

    Thank you!

  • @Architect-u2g
    @Architect-u2g 5 месяцев назад

    Some Annoying girl: Hey who's your favorite youtuber?
    Me: John Elder
    Annoying Girl: Who's that?
    Me: "You are accused of treason and anti-soviet behavior. The court finds you guilty and sentences you to be shot"

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

    tell a friend to come and watch....

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

    thumbs up

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

    Nice re!

  • @oleg-medovikov
    @oleg-medovikov 3 года назад

    attention, this won't work in android! Don't waste your time.

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

      lol of course it will work in android lol

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

    100th view