This is phenomenal, i'm working on an application that will need a custom title bar, but also i will be making responsive widgets to fill the window when resizing.
@AM-jw1lo2 жыл бұрын
Perfect, you have saved me so much time. And you have read my mind about what i wanted for a small app.
@shahzaibhassan2777 Жыл бұрын
Amazing, the fact he gave us the code is amazing, i didint have to do anything. Finnaly!
@Exius-Zero Жыл бұрын
Oh shoot, that's what 300+500 does!? Didn't even know that too!
@pabloconstantino64902 жыл бұрын
This has been really helpful, couldn't find how to make my window draggable without snaping the mouse to the top left. Thanks a lot :)
@tyjohnston58892 жыл бұрын
Awesome. Thanks for code and explaining where the window starts! It's literally in one if my programming books but I had forgotten and bugged me lol.
6 ай бұрын
This tutorial hits right in the face those who say that tkinter is a Martian interface and difficult to customize hehe
@terranovatech86726 ай бұрын
True! Check out my CustomTkinter video!
@mind_vortex Жыл бұрын
Thank you very much for the content, I looked for a long time and it's working perfectly. Note: To solve the problem of not being able to unminimize the program I added alt + tab in the minimize function to remove focus from the window. It's an impromptu but it solves the problem
@Черно-Светник2 жыл бұрын
Bro, this is exactly what I've been looking for for so long, thank you so much!
@danielzheleznov723 жыл бұрын
OMG great job. It a literal god at tkinter.
@gregfumagalli66783 жыл бұрын
How to show icon in taskbar?
@kristinearconado17983 жыл бұрын
OMG THANK YOU!
@Phantom-ki9ct3 жыл бұрын
Hey, am not getting how to set icon on the title bar on your code. Please help me
@lidoazul2 жыл бұрын
Nice bro !!, Great job👏
@danielzheleznov723 жыл бұрын
Hey so this is a suggestion but have you tried obs studio for video recording the text just looks blurry. I didn't have that with obs studio
@karthikking5372 Жыл бұрын
On minimising the window the titile bar of window is showing can we hide it when minimising??? It is very helpfull to ne
@Eclectic_Cowboy2 жыл бұрын
Very nice. Thank you.
@benjaminjose73542 жыл бұрын
Hi Bro , I really liked it..But when i try to use a Entry widget in the App..it's not working.. Window.bind("",deminimize") is the problem what i noticed.. Please help if u can.
@benjaminjose73542 жыл бұрын
Just got a solution, 1.Removed window.bind("",deminimize) from the main code.This bind caused Entry widgets not to work. 2.Added this code to minimize function ( so to make this FocusIn bind pointing to deminimize function active only when we hit minimize button) 3.created a new fake function , which doesnt do anything. 4.replicated a FocusIn bind which points to this fake function.Put this command towards in the deminimize function.So when the deminimize is clicked , focusIn bind doesn't have a influence as it points to a fake function Below is the code , def minimize_me(): window.attributes("-alpha",0) # so you can't see the window when is minimized window.minimized = True window.bind("",deminimize) def fake_func(event): return None def deminimize(event): window.focus() window.attributes("-alpha",1) # so you can see the window when is not minimized if window.minimized == True: window.minimized = False window.bind("",fake_func)
@terranovatech86722 жыл бұрын
@@benjaminjose7354 Glad you got it fixed, just seeing this now. Hope all is well :)
@benjaminjose73542 жыл бұрын
@@terranovatech8672 All good..
@perfectionist41882 жыл бұрын
@@benjaminjose7354 ah, no mate, when someone will minimize the window, he won't be able to maximize it back, is there a way to fix that?
@juanignaciomassanella37112 жыл бұрын
@@perfectionist4188 i have the same question
@freddywicaksono8327 Жыл бұрын
Thank you very much bro..
@Carlsson25C2 жыл бұрын
thx nice titel bar
@pyraforion25849 ай бұрын
when i paste the code my back ground doesnt work anymore and it says image has no attribute open
@Flqmmable8 ай бұрын
ooo i like thatt!
@notmyregret Жыл бұрын
Something interesting I figured out, you don't need to do all of those functions to change the background color when active. For instance: close_button = Button(title_bar, text='X', command=root.destroy, bg=RGRAY, bd=0, activebackground=RED, activeforeground='white', highlightthickness=0) There's properties such as activebackground and activeforeground that allow you to do this.
@failyfail48083 жыл бұрын
Thanks dude. Any idea how to make a dark mode scrollbar?
@terranovatech86723 жыл бұрын
Thats a tricky one! Maybe I'll look into that next!
@lexc.82802 жыл бұрын
Thanks man
@neeshantbakshi75622 жыл бұрын
hey When i increase the root.geometry the title_bar customized one disposition itself to the centre
@amv15923 жыл бұрын
Thank you
@taranjeetsingh63242 жыл бұрын
It's throughing error when I add image to the buttons which I packed in the window😅
@charlieborchardt2066 Жыл бұрын
The ascii symbols just look like question marks with diamonds around them. I can't unminimize the window. Entrys and keybinds also don't work.
@perfectionist41882 жыл бұрын
Hey, there's a problem witht his though, the entry boxes and the text widgets doesn't work with this, I dunno why this is happened, posting the issue on github as well
@OminousHvh Жыл бұрын
any solutions to this?
@aryangovil2653 жыл бұрын
I am not sure but can you not simply use 'activebackgroundhighlight' in the button's ?
@terranovatech86723 жыл бұрын
Maybe, but I dont like the default color :P
@VishuTomar36 Жыл бұрын
when adding a ico file as a icon its disturbing the geometery
@immbir3982 Жыл бұрын
thanks
@sago272 жыл бұрын
@muneebkhan1893 жыл бұрын
Thanks for this video, It Helped a lot, and with your window appear thing it can be resolved easily. The window will always appear in the center with this code. w = root.winfo_screenwidth() h = root.winfo_screenheight() x = (w / 2) - (450 / 2) y = (h / 2) - (410 / 2) root.geometry(f'{450}x{410}+{int(x)}+{int(y)}') Its working fine on my side. Best of luck for your next video.
@terranovatech86723 жыл бұрын
Very nice Thanks I appreciate it!
@tianemaestas7013 жыл бұрын
Is it just me or are entry boxs not working in it??
@tianemaestas7013 жыл бұрын
it has something to do with the line: root.bind("",deminimize) becuase when i comment it out it works
@tianemaestas7013 жыл бұрын
I fixed the issue. There was something wrong with the deminimize
@tianemaestas7013 жыл бұрын
@TrxiBoy a couple of comments up there is the solution. You have to comment out one of the lines
@taranjeetsingh68042 жыл бұрын
@TrxiBoy where do I have to do the 2nd step?😅
@benjaminjose73542 жыл бұрын
Hey all found a solution , worked for me.. Just got a solution, 1.Removed window.bind("",deminimize) from the main code.This bind caused Entry widgets not to work. 2.Added this code to minimize function ( so to make this FocusIn bind pointing to deminimize function active only when we hit minimize button) 3.created a new fake function , which doesnt do anything. 4.replicated a FocusIn bind which points to this fake function.Put this command towards in the deminimize function.So when the deminimize is clicked , focusIn bind doesn't have a influence as it points to a fake function Below is the code , def minimize_me(): window.attributes("-alpha",0) # so you can't see the window when is minimized window.minimized = True window.bind("",deminimize) def fake_func(event): return None def deminimize(event): window.focus() window.attributes("-alpha",1) # so you can see the window when is not minimized if window.minimized == True: window.minimized = False window.bind("",fake_func)