Using Frames With Menus - Python Tkinter GUI Tutorial #47

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

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

  • @nakshatrasharma6218
    @nakshatrasharma6218 4 года назад +11

    By the way learning it the most entertaining way..
    All credit goes to you John

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

    Your'e awesome! Keep up the good work! Your videos are to the point, solves my problems and are pleasant to watch! Excellent!

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

      Thanks, I appreciate it!

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

    Your Videos are of great quality and were extremely helpful for 🤓🙂👌🏾 my tkinter projects

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

      Glad it was helpful!

  • @bartbossuyt
    @bartbossuyt 11 месяцев назад

    Hey John Great tuts, question do you have a video where there is menu bar and every frame is a different python file? So you can better maintance the code

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

    Hi Jonh, Great Job! Thank you. Question. In this example ...instead of forget(), could it be destroy() method?

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

      give it a try and see :-)

  • @aryamannatrajan4850
    @aryamannatrajan4850 4 года назад +4

    Thanks for such amazing video tutorials, enjoying them a lot.

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

      You're welcome!

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

      I guess Im kinda off topic but does anyone know a good website to watch newly released series online ?

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

      @Theodore Jayden meh lately I have been using Flixportal. you can find it through google :) -benicio

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

      @Benicio Atlas Thanks, I signed up and it seems like they got a lot of movies there :) Appreciate it!!

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

      @Theodore Jayden no problem :D

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

    Would be amazing if you make a vidoe explaining how to have a different menu for each frame.

  • @rodrigob.v.6850
    @rodrigob.v.6850 3 года назад

    I had to add file_new_frame.pack_propagate(0) after file_new_frame.pack(fill="both", expand=1) so it does not shrink the frame to the label size. Thanks for all the videos.

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

    You're magician.

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

    thanks for yours videos.

  • @icanseeangels_
    @icanseeangels_ 4 года назад

    I have built a program from your tutorial thank so much I subscribed only one question how do I keep the function from repeating itself when going back to the frame? In the end you kept getting the function repeating itself every time you clicked the menu how do I got about just getting the code once?

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

      Sorry I'm not sure what you're asking

    • @icanseeangels_
      @icanseeangels_ 4 года назад

      @@Codemycom sorry I wasn't clear at the end of the video you kept calling the function and it kept repeating itself..what if you didn't want the function to keep showing up in the frame? I just want the function to run once and not have duplicates in the frame

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

      @@icanseeangels_ Keep watching the videos

    • @icanseeangels_
      @icanseeangels_ 4 года назад

      @@Codemycom figured out the problem on my own was using .pack() instead of switching to .grid() great series though I watched all your videos and liked every video one more question if you don't mind on the frame u use .pack(fill="both", expand=0) but since I'm now using .grid what would I change that to for the frames? because since I'm using .grid() now I'm getting an error from framename.pack(fill="both", expand=0) since I can't use both... thank you so much for your time

    • @icanseeangels_
      @icanseeangels_ 4 года назад

      @@Codemycom actually I just figured out the second question I had to add .grid(sticky=N+S+E+W ) instead of .pack(fill="both", expand=0) wrote my first program with tkinter and it came out awesome thanks to you going to purchase some courses on your site next week thank you

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

    Nice work, thank you so much❤️

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

    Is it possible to expand 3 frame widgets by using pack method but not evenly. For example i want 30% of all space on one, 50% on second and 20% on 3rd.

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

      sure ipady and ipadx are internal padding...and pady and padx can be set on each frame for external padding. Not sure exactly what you mean.

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

    feed the algorithm! great vid!

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

    thanks for the video

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

    I'm not sure you still reply to questions, but can you give me a tip, when i get widgets inside of fuctions they only exist inside of them as they should but for example when i want to show data in a Treeview that is in the frame 2 but the data it self was edited/created on frame 1 how can i target the treeview without geting the error that it doesn't exist

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

      make your widget variable names global

  • @aryamannatrajan4850
    @aryamannatrajan4850 4 года назад

    Amazing videos 👍👍

  • @program_brain
    @program_brain 4 года назад

    U great sir.

  • @manikandannatarajan9665
    @manikandannatarajan9665 4 года назад

    I'm having trouble using the geometry() function, it says it's not defined and that I use a wrong specifier,
    I tried several multiplication signs but none of them worked, is there a solution
    And could you make a video on text editor making?

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

    now i will make more than 10 frames and i need to organize the code, how can i put every frame in different file and call the back ?

  • @darbydurack2260
    @darbydurack2260 4 года назад

    So you know how when you first run it's a grey kinda frame, is there a way to call the .pack_forget() or .grid_forget() on that?

  • @haseebali8139
    @haseebali8139 4 года назад +1

    hey, john! I created an entry box in a father frame and wants to get the information from entry box in children frame(another), but this gives me the error as".!frame.!entry"

    • @haseebali8139
      @haseebali8139 4 года назад

      how can we get the information from one frame to another frame

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

      make your variables global and you can access them anywhere.

    • @haseebali8139
      @haseebali8139 4 года назад

      @@Codemycom Ii did this but it will not works

    • @haseebali8139
      @haseebali8139 4 года назад

      it gives the same error

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

      @@haseebali8139 maybe you didn't do it correctly.

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

    ▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/2UFLKgj 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

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

    Hi,
    When I am using the pack() inside the function, it throws an error "'function' object has no attribute 'pack'"

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

      did you pack on the same line that you defined the thing?

  • @Genesis-uv8ej
    @Genesis-uv8ej 3 года назад

    Hello John, how to avoid multiple copies of frames everytime I click menu item?

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

      Not sure what you mean...it shouldn't do that

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

    I did everything you did in the tutorial but when it runs it just shows a blank screen what do I do?

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

      Then no, you didn't do everything I did in the video. Check your code for typos.

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

      @@Codemycom oh i realise what i did wrong. Great video by the way. Thanks :)

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

      @@hamishorse1710 Thanks :-)

  • @JerrySmith-nq9mj
    @JerrySmith-nq9mj 4 года назад

    I love watching your videos. However, I am trying to use this tutorial to apply to frames when clicking a button. So I have button1 and button2 and it removes LabelFrame1(and the child contents) and LabelFrame2(and it's child contents accordingly. However, when I do the function, it's like it doesn't even recognize the LabelFrame and it returns a namespace error. I even tried to do the global variable and it still doesn't seem to recognize it.

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

      are you .grid or .pack 'ing on the same line that you define the thing? You can't do that.

    • @JerrySmith-nq9mj
      @JerrySmith-nq9mj 4 года назад

      @@Codemycom I see that now. Yikes. I just watched the video on that from you last night. Thanks man!!

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

    its good .. i want else fore frames and insert data ♣

  • @aryamannatrajan4850
    @aryamannatrajan4850 4 года назад

    It does become red but it cannot be seen because "root" is not big enough.
    See if you maximize the screen u can see it come below the blue, but we don't want that.

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

      Then change the dimensions in the code.

  • @pk_officl
    @pk_officl 4 года назад

    pack_forget() function isn't working. The compiler says function has no attribute as "pack_forget".

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

      be sure to put the () at the end of pack_forget().

  • @sujitsingh7279
    @sujitsingh7279 4 года назад

    Hi sir Is there any way where I will design a login page and when user enters the correct username and password it displays all my contents in the same window and not in another window. For Ex: when we login on facebook(In a browser) , once we login successfully it displays all the contents in the same window(or tab) and it does not open a new window (or tab)

    • @sujitsingh7279
      @sujitsingh7279 4 года назад

      and once again thank you for all your effort.

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

      @@sujitsingh7279 Yes, using the exact method I teach you in this video.. create two frames...put the login stuff in one frame and everything else in the other...show/hide each frame appropriately. Did you watch this video?

    • @sujitsingh7279
      @sujitsingh7279 4 года назад

      @@CodemycomYes, I have watched this video and now I have the clue. Thanks :)

  • @-eckes-w.3574
    @-eckes-w.3574 3 года назад

    Hi John, the Menu has in the first line always "- - - - - - - -". How can i delete this line ?

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

      set tearoff=0

    • @-eckes-w.3574
      @-eckes-w.3574 3 года назад

      @@Codemycom thank u, o.k. - that works, but what is the sense of this line ? can i do something with it or is it just an empty entry to show, that there is a menu ?

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

      @@-eckes-w.3574 what do you mean? It's purpose it to remove that dotted line.

    • @-eckes-w.3574
      @-eckes-w.3574 3 года назад

      @@Codemycom i mean, why does this line exist ? if it don't exist - i don't need to remove it. is it a windows default or python default ? I've never seen such al dotted line in any menu...

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

      @@-eckes-w.3574 Sorry, I don't know what you're talking about. The dotted line is there by default in all tkinter menus. It's a tearoff, it allows you to tear off the menu and move it around. If you want to remove it, use the line of code that I gave you. That's all there is to it.

  • @vigneshvicky6720
    @vigneshvicky6720 4 года назад

    Teach live search in tkinter plz..

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

      I don't know what you mean by live search

    • @vigneshvicky6720
      @vigneshvicky6720 4 года назад

      @@Codemycom its means like google search. While we type in search bar simultaneously it shows the matched result below. Plz teach me it will helpfull for others too

  • @nakshatrasharma6218
    @nakshatrasharma6218 4 года назад

    It should be #47