What is winfo_id() under Win32

Mark Hammond mhammond at skippinet.com.au
Thu Jan 27 11:52:39 EST 2000


In article <3890439A.1C1BA6D2 at freemail.hu>,
  Attila =?iso-8859-1?Q?Filet=F3th?= <tothfile at freemail.hu> wrote:
> Hi!
>
> class app(Toplevel):
>     def __init__(self, master):
>         self.master = master
>         Toplevel.__init__(self, master)
>         self.update_idletasks()
>         hwnd = self.winfo_id()
> #       hwnd = win32ui.GetParent(hwnd)  # Attribute error: GetParent
>         win32gui.ShowWindow(hwnd, SW_SHOWMAXIMIZED)  # It would only
> work after the GetParent() call

win32gui _should_ include these functions.  If I remember, I will add
them.

In the meantime, the following _should_ work:

wnd = win32ui.CreateWindowFromHande()
parent = wnd.GetParent()

Mark.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list