What is winfo_id() under Win32

Attila Filetóth tothfile at freemail.hu
Tue Feb 1 14:44:02 CET 2000


Hi!

> 'CreateWindowFromHande'.
> 
> Damn - should cut and paste :-)  CreateWindowFromHandle - didnt have
> the 'l'

Oh no, I was lame, I should have spotted it. It works fine with 'l' :-)
[
        hwnd = self.winfo_id()
        wnd = win32ui.CreateWindowFromHandle(hwnd)
        parent = wnd.GetParent()
        parent.ShowWindow(SW_SHOWMAXIMIZED)
]
However, I think I will choose Fredrik's solution:
[
        hwnd = eval(self.wm_frame())
        win32gui.ShowWindow(hwnd, SW_SHOWMAXIMIZED)
]

Thanks a lot,
BR,
    Attila



More information about the Python-list mailing list