Akascape / py-window-styles

Customize your python UI window with awesome pre-built windows 11 themes.
Creative Commons Zero v1.0 Universal
257 stars 15 forks source link

bug :/ #23

Closed Thisal-D closed 2 months ago

Thisal-D commented 2 months ago

without using pywinstyles

image


after using pywinstyles

pywinstyles.apply_style(app, "aero")  # here app is CTk (root)
pywinstyles.set_opacity(app, 0.8)

Screenshot 2024-04-12 083649

Screenshot 2024-04-12 083333

Akascape commented 2 months ago

@Thisal-D Do you have some widgets below the topmost frame? I suggest you to remove those from the the window when it's hidden.

Thisal-D commented 2 months ago

@Thisal-D Do you have some widgets below the topmost frame? I suggest you to remove those from the the window when it's hidden.

There was no any widgets below the scrollable frame :/

Akascape commented 2 months ago

@Thisal-D Is this happening in a plain windows?

Thisal-D commented 2 months ago

@Thisal-D Is this happening in a plain windows?

Screenshot 2024-04-12 174251

yeah its happenning :/

Thisal-D commented 2 months ago

@Thisal-D Is this happening in a plain windows?

Uploading 2024-04-12 17-47-48.mp4…

i think problem start with set_opacity method ....

Akascape commented 2 months ago

@Thisal-D Try adding self.update() method.

I will try to fix it later.

Thisal-D commented 2 months ago

@Akascape

I tried self.update() method, it's not help :/

Akascape commented 2 months ago

@Thisal-D This is an internal bug when you use set_opacity method to root window. I recommend you to use root.wm_attributes("-alpha", 0.8) method for root windows. set_opacity method is only for widgets not window.

Thisal-D commented 2 months ago

@Thisal-D This is an internal bug when you use set_opacity method to root window. I recommend you to use root.wm_attributes("-alpha", 0.8) method for root windows. set_opacity method is only for widgets not window.

@Akascape Ok .