简体   繁体   中英

How to change the windows title bar color using pywin32?

I'm developing an app using Pyside2 under windows (10 and 11) and I would like to switch / change the windows title bar color .

Microsoft say that it's possible to do that using win32api and I didn't find how to do that using pywin32api.

Thank you.

在此处输入图像描述

The title bar is drawn by Windows so you cannot change it via PyQt or Pyside. There are 2 ways to do it :

First one is with C++ : See the post

The second one is: You can create your own title bar with Qt. Just disable the windows title bar, and create a top frame for your interface with clickable buttons from Qt Designer or from code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM