Fry
Fry

Reputation: 4286

In wx.Python, how would I get the window handle (hwnd) to my frame and set its style?

How can I get a handle to my current window in wx.Python (hWnd) and set it's style to WS_EX_NOPARENTNOTIFY, or can I set this when I initialize the frame?

This question is a result from an answer here

Upvotes: 2

Views: 2769

Answers (2)

Andrey -hidden-
Andrey -hidden-

Reputation: 36

Try this

self.Show(True)
self.Show(False)
self.Show(True)
self.GetHandle()

Upvotes: 0

FogleBird
FogleBird

Reputation: 76762

Try this?

frame.SetExtraStyle(4)

Also, frame.GetHandle() will return the HWND. But this all sounds pretty hacked up.

Upvotes: 2

Related Questions