Actually i was making a scrollable frame in custom tkinter to make chat bot but when I added any message it does not scroll the frame automatically... Pls help me...
Looking at the DWM documentation I think setting the border colour (and a few other things) using DwmSetWindowAttribute isn't supported in windows 10, only windows 11 from build 22000 onwards. If you are using windows 10 like I am it may be the issue unfortunately. It's weird that it just quitely fails for me, with no sort of warning in the python console.
Super gemacht! Wir brauchen mehr advanced Videos über Ctk. Danke dir!
thank you i have been looking for a solution for many days
This was the video that I have been searching for over a month... But I found none...
Thank u very much for this video...😅😅😅🤗🤗🤗
thanks a lot for sharing this
Hello, can you make a video about switching frames in tkinter?
Can anyone confirm if DwmSetWindowAttribute is only usable in windows 11?
how to create new window in custom tkinter and and the new window has the same style with the first window?
Please do more videos on customtkinter animation !!
Actually i was making a scrollable frame in custom tkinter to make chat bot but when I added any message it does not scroll the frame automatically...
Pls help me...
it doesn't works on me, I can't figure out the problem...
Looking at the DWM documentation I think setting the border colour (and a few other things) using DwmSetWindowAttribute isn't supported in windows 10, only windows 11 from build 22000 onwards. If you are using windows 10 like I am it may be the issue unfortunately. It's weird that it just quitely fails for me, with no sort of warning in the python console.
@@MrMoon-hy6pn Doesn't work for me too. I'm also using windows 10, version 19045.4046
sadly only works on windows 11
You are a good content creator but there just aren't many people using tkinter. You have to expand your horizons it you really wanna grow
His other channel has 138k lmao
@@WhoTookNeverBleach wait, he has another channel?
@@heyyounotyouyou3761 Yea ClearCode
Or make a fake title bar which takes less time to figure out.
isn't this a clear code video?
Please someone help me the code doesn''t work:
import customtkinter as ctk
from ctypes import windll, byref, sizeof, c_int
window = ctk.CTk(fg_color="#FF0000")
window.geometry("800x500")
HWND = windll.user32.GetParent(window.winfo_id())
title_bar_colour = 0x00FF0000
windll.dwmapi.DwmSetWindowAttribute(HWND, 36, byref(c_int(title_bar_colour)), sizeof(c_int))
window.mainloop()
maybe its because it only works on windows 11+
@@BunnitownMain Yeah fixed it.
my one is cross platform works everywhere
I mean in all windows.
@@it_is_random How did you make it work? >
@@itallocortez
import ctypes as ct
from tkinter import *
root = Tk()
root.update()
root.iconify()
DWWMA_USE_IMMERSIVE_DARK_MODE = 20
set_window_attribute = ct.windll.dwmapi.DwmSetWindowAttribute
get_parent = ct.windll.user32.GetParent
hwnd = get_parent(root.winfo_id())
renduring_policy = DWWMA_USE_IMMERSIVE_DARK_MODE
value = 1
value = ct.c_int(value)
set_window_attribute(hwnd, renduring_policy, ct.byref(value), ct.sizeof(value))
root.update_idletasks()
root.deiconify()
root.mainloop()
@@it_is_random bro say please, how did you fix this??? please)