mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 21:10:06 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
18 lines
443 B
Python
18 lines
443 B
Python
|
|
class MyWidget(wx.Window):
|
|
|
|
def __init__(self, parent):
|
|
|
|
pre = wx.PreWindow() # Use Pre- constructor here!
|
|
|
|
# Do this first:
|
|
self.SetBackgroundStyle(wx.BG_STYLE_TRANSPARENT)
|
|
|
|
# And really create the window afterwards:
|
|
pre.Create(parent)
|
|
self.PostCreate(pre)
|
|
|
|
|
|
|
|
|