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
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.
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.
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam 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
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
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"
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 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 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
@@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
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?
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.
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 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 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...
@@-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.
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 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?
@@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
By the way learning it the most entertaining way..
All credit goes to you John
Thanks!
Your'e awesome! Keep up the good work! Your videos are to the point, solves my problems and are pleasant to watch! Excellent!
Thanks, I appreciate it!
Thanks for such amazing video tutorials, enjoying them a lot.
You're welcome!
I guess Im kinda off topic but does anyone know a good website to watch newly released series online ?
@Theodore Jayden meh lately I have been using Flixportal. you can find it through google :) -benicio
@Benicio Atlas Thanks, I signed up and it seems like they got a lot of movies there :) Appreciate it!!
@Theodore Jayden no problem :D
Your Videos are of great quality and were extremely helpful for 🤓🙂👌🏾 my tkinter projects
Glad it was helpful!
Hi Jonh, Great Job! Thank you. Question. In this example ...instead of forget(), could it be destroy() method?
give it a try and see :-)
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
no
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.
cool
Would be amazing if you make a vidoe explaining how to have a different menu for each frame.
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 ?
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.
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.
You're magician.
Ha thanks
Nice work, thank you so much❤️
Welcome!
thanks for yours videos.
Welcome
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam 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
Hi,
When I am using the pack() inside the function, it throws an error "'function' object has no attribute 'pack'"
did you pack on the same line that you defined the thing?
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
make your widget variable names global
I did everything you did in the tutorial but when it runs it just shows a blank screen what do I do?
Then no, you didn't do everything I did in the video. Check your code for typos.
@@Codemycom oh i realise what i did wrong. Great video by the way. Thanks :)
@@hamishorse1710 Thanks :-)
Amazing videos 👍👍
Glad you like them!
Hello John, how to avoid multiple copies of frames everytime I click menu item?
Not sure what you mean...it shouldn't do that
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"
how can we get the information from one frame to another frame
make your variables global and you can access them anywhere.
@@Codemycom Ii did this but it will not works
it gives the same error
@@haseebali8139 maybe you didn't do it correctly.
feed the algorithm! great vid!
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?
Sorry I'm not sure what you're asking
@@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
@@icanseeangels_ Keep watching the videos
@@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
@@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
thanks for the video
welcome
U great sir.
Thanks!
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?
try lowercase letter x
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?
Don't know what you mean
@@Codemycom dw bruz cracked it
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.
Then change the dimensions in the code.
pack_forget() function isn't working. The compiler says function has no attribute as "pack_forget".
be sure to put the () at the end of pack_forget().
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.
are you .grid or .pack 'ing on the same line that you define the thing? You can't do that.
@@Codemycom I see that now. Yikes. I just watched the video on that from you last night. Thanks man!!
Hi John, the Menu has in the first line always "- - - - - - - -". How can i delete this line ?
set tearoff=0
@@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 ?
@@-eckes-w.3574 what do you mean? It's purpose it to remove that dotted line.
@@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...
@@-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.
its good .. i want else fore frames and insert data ♣
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)
and once again thank you for all your effort.
@@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?
@@CodemycomYes, I have watched this video and now I have the clue. Thanks :)
Teach live search in tkinter plz..
I don't know what you mean by live search
@@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
It should be #47
Good catch ;-)