Custom Dark Mode Title Bars in Tkinter!

  Рет қаралды 13,998

Terranova Tech

Terranova Tech

Күн бұрын

Пікірлер: 55
@djKafelka
@djKafelka 2 жыл бұрын
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-jw1lo
@AM-jw1lo 2 жыл бұрын
Perfect, you have saved me so much time. And you have read my mind about what i wanted for a small app.
@shahzaibhassan2777
@shahzaibhassan2777 Жыл бұрын
Amazing, the fact he gave us the code is amazing, i didint have to do anything. Finnaly!
@Exius-Zero
@Exius-Zero Жыл бұрын
Oh shoot, that's what 300+500 does!? Didn't even know that too!
@pabloconstantino6490
@pabloconstantino6490 2 жыл бұрын
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 :)
@tyjohnston5889
@tyjohnston5889 2 жыл бұрын
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
@terranovatech8672
@terranovatech8672 6 ай бұрын
True! Check out my CustomTkinter video!
@mind_vortex
@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!
@danielzheleznov72
@danielzheleznov72 3 жыл бұрын
OMG great job. It a literal god at tkinter.
@gregfumagalli6678
@gregfumagalli6678 3 жыл бұрын
How to show icon in taskbar?
@kristinearconado1798
@kristinearconado1798 3 жыл бұрын
OMG THANK YOU!
@Phantom-ki9ct
@Phantom-ki9ct 3 жыл бұрын
Hey, am not getting how to set icon on the title bar on your code. Please help me
@lidoazul
@lidoazul 2 жыл бұрын
Nice bro !!, Great job👏
@danielzheleznov72
@danielzheleznov72 3 жыл бұрын
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
@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_Cowboy
@Eclectic_Cowboy 2 жыл бұрын
Very nice. Thank you.
@benjaminjose7354
@benjaminjose7354 2 жыл бұрын
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.
@benjaminjose7354
@benjaminjose7354 2 жыл бұрын
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)
@terranovatech8672
@terranovatech8672 2 жыл бұрын
@@benjaminjose7354 Glad you got it fixed, just seeing this now. Hope all is well :)
@benjaminjose7354
@benjaminjose7354 2 жыл бұрын
@@terranovatech8672 All good..
@perfectionist4188
@perfectionist4188 2 жыл бұрын
@@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?
@juanignaciomassanella3711
@juanignaciomassanella3711 2 жыл бұрын
@@perfectionist4188 i have the same question
@freddywicaksono8327
@freddywicaksono8327 Жыл бұрын
Thank you very much bro..
@Carlsson25C
@Carlsson25C 2 жыл бұрын
thx nice titel bar
@pyraforion2584
@pyraforion2584 9 ай бұрын
when i paste the code my back ground doesnt work anymore and it says image has no attribute open
@Flqmmable
@Flqmmable 8 ай бұрын
ooo i like thatt!
@notmyregret
@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.
@failyfail4808
@failyfail4808 3 жыл бұрын
Thanks dude. Any idea how to make a dark mode scrollbar?
@terranovatech8672
@terranovatech8672 3 жыл бұрын
Thats a tricky one! Maybe I'll look into that next!
@lexc.8280
@lexc.8280 2 жыл бұрын
Thanks man
@neeshantbakshi7562
@neeshantbakshi7562 2 жыл бұрын
hey When i increase the root.geometry the title_bar customized one disposition itself to the centre
@amv1592
@amv1592 3 жыл бұрын
Thank you
@taranjeetsingh6324
@taranjeetsingh6324 2 жыл бұрын
It's throughing error when I add image to the buttons which I packed in the window😅
@charlieborchardt2066
@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.
@perfectionist4188
@perfectionist4188 2 жыл бұрын
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
@OminousHvh Жыл бұрын
any solutions to this?
@aryangovil265
@aryangovil265 3 жыл бұрын
I am not sure but can you not simply use 'activebackgroundhighlight' in the button's ?
@terranovatech8672
@terranovatech8672 3 жыл бұрын
Maybe, but I dont like the default color :P
@VishuTomar36
@VishuTomar36 Жыл бұрын
when adding a ico file as a icon its disturbing the geometery
@immbir3982
@immbir3982 Жыл бұрын
thanks
@sago27
@sago27 2 жыл бұрын
@muneebkhan189
@muneebkhan189 3 жыл бұрын
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.
@terranovatech8672
@terranovatech8672 3 жыл бұрын
Very nice Thanks I appreciate it!
@tianemaestas701
@tianemaestas701 3 жыл бұрын
Is it just me or are entry boxs not working in it??
@tianemaestas701
@tianemaestas701 3 жыл бұрын
it has something to do with the line: root.bind("",deminimize) becuase when i comment it out it works
@tianemaestas701
@tianemaestas701 3 жыл бұрын
I fixed the issue. There was something wrong with the deminimize
@tianemaestas701
@tianemaestas701 3 жыл бұрын
@TrxiBoy a couple of comments up there is the solution. You have to comment out one of the lines
@taranjeetsingh6804
@taranjeetsingh6804 2 жыл бұрын
@TrxiBoy where do I have to do the 2nd step?😅
@benjaminjose7354
@benjaminjose7354 2 жыл бұрын
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)
Menu Bars With tKinter - Python Tkinter GUI Tutorial #46
11:02
Codemy.com
Рет қаралды 102 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 3,2 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 10 МЛН
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 36 МЛН
Changing the title bar color of tkinter windows
11:38
Atlas
Рет қаралды 9 М.
Building a Custom Python Music Player from Scratch
36:50
Terranova Tech
Рет қаралды 6 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Custom Titlebar Hack! - Python Tkinter GUI Tutorial 188
13:45
Codemy.com
Рет қаралды 31 М.
Check out how toggle menu is created in #python
9:35
PROGRAMMED
Рет қаралды 16 М.
How To Write Unit Tests in Python • Pytest Tutorial
35:34
pixegami
Рет қаралды 146 М.
Communicating between processes (using pipes) in C
14:00
CodeVault
Рет қаралды 282 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 3,2 МЛН