i want to change the size of the active windows within blender python by width and height.
i saw that there's tkinter for python module adapted just for that but isn't enable withing blender.
i have no idea how to do this within blender. any ideas anyone ?
i also saw this trick, it may interest potential visitors, but for me this trick will not work, it's only for new window. New window with Python API?
after a lot of research, in the c langage, you can easely have access to wome windows functionnalities
and we can use c langage through python with ctypes
import ctypes MB_OK = 0x0 MB_OKCXL = 0x01 MB_YESNOCXL = 0x03 MB_YESNO = 0x04 MB_HELP = 0x4000 ICON_EXLAIM=0x30 ICON_INFO = 0x40 ICON_STOP = 0x10 result = ctypes.windll.user32.MessageBoxA(0, "Your text?", "Your title", MB_HELP| MB_YESNO | ICON_STOP)
this code will pop up an unique window os windows through blender.
there's some similar features for setting the window size: ctypes.windll.user32.SetWindowPos() https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setwindowpos
unfortunately right now i cannot go further because i need to know how to have this 'Handle' information, for the first parameters of the function.