Код: Выделить всё
hwnd = win32gui.FindWindow(None, "Untitled - Notepad")
#win32Gui most likely but win32api for demonstration
win32api.PostMessage(hwnd, commandToChangeBorderhere, bordercolour .....)
Если это невозможно, мой следующий вариант покажется немного грубым, но я думаю, он сработает,
Код: Выделить всё
rect = win32gui.GetWindowRect(hwnd) #Get the location and size of handle window
#create a rectangle in Tkinter at the same location as Rect but slightly bigger so its "around" the handle window
Спасибо,
Бен.
Спасибо.
п>
Подробнее здесь: https://stackoverflow.com/questions/341 ... w-win32api
Мобильная версия