Created
December 4, 2022 00:45
-
-
Save secemp9/763154f36c8fea2cfa3e941bf5273dc2 to your computer and use it in GitHub Desktop.
Preventing resizing on win10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32gui,win32api,win32con | |
title = "File Explorer" # modify this line... | |
hwnd = win32gui.FindWindow(None, title) | |
style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE) | |
style &= ~(win32con.WS_THICKFRAME); | |
win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, style) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment