dllwidget demo updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-12-06 20:27:40 +00:00
parent 39679a3c2f
commit be050baf48
3 changed files with 12 additions and 13 deletions

View File

@@ -36,14 +36,16 @@ class TestFrame(wxFrame):
"TestWindow",
size=(250, 150))
# The embedded window is the one exported from the DLL
print dw.GetEmbeddedWindow().GetClassName()
# This shows that we can give it a child from this side of things.
# You can also call any wxWindow methods on it too.
wxStaticText(dw.GetEmbeddedWindow(), -1,
"Loaded from test_dll...", pos=(10,10))
if dw.Ok():
# The embedded window is the one exported from the DLL
print dw.GetEmbeddedWindow().GetClassName()
# This shows that we can give it a child from this side of things.
# You can also call any wxWindow methods on it too.
wxStaticText(dw.GetEmbeddedWindow(), -1,
"Loaded from test_dll...", pos=(10,10))
else:
wxStaticText(dw, -1, "ERROR!!!!", pos=(20,20))
sizer = wxBoxSizer(wxVERTICAL)
sizer.Add(wxStaticLine(panel, -1), 0, wxGROW)