font = wxFont(42, wxSWISS, wxNORMAL, wxNORMAL)
dc.SetFont(font)
st = "Python Rules!"
font = wxFont(42, wxSWISS, wxNORMAL, wxNORMAL)
dc.SetFont(font)
st = "Python Rules!"
dc.DrawText(st, (size.width-tw)/2, (size.height-th)/2)
dc.EndDrawing()
#---------------------------------------------------------------------------
dc.DrawText(st, (size.width-tw)/2, (size.height-th)/2)
dc.EndDrawing()
#---------------------------------------------------------------------------
-if wxPlatform == '__WXMSW__':
- class MyMiniFrame(wxMiniFrame):
- def __init__(self, parent, ID, title, pos, size, style):
- wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
- panel = wxPanel(self, -1)
- ID = NewId()
- button = wxButton(panel, ID, "Close Me")
- button.SetPosition(wxPoint(15, 15))
- self.Connect(ID, -1, wxEVT_COMMAND_BUTTON_CLICKED, self.OnCloseMe)
+#if wxPlatform == '__WXMSW__':
+class MyMiniFrame(wxMiniFrame):
+ def __init__(self, parent, ID, title, pos, size, style):
+ wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
+ panel = wxPanel(self, -1)
+ ID = NewId()
+ button = wxButton(panel, ID, "Close Me")
+ button.SetPosition(wxPoint(15, 15))
+ self.Connect(ID, -1, wxEVT_COMMAND_BUTTON_CLICKED, self.OnCloseMe)
win = MyMiniFrame(self, -1, "This is a Mini...",
wxPoint(-1, -1), #wxPyDefaultPosition,
wxSize(150, 150),
win = MyMiniFrame(self, -1, "This is a Mini...",
wxPoint(-1, -1), #wxPyDefaultPosition,
wxSize(150, 150),
+# Revision 1.6 1999/04/30 03:29:53 RD
+# wxPython 2.0b9, first phase (win32)
+# Added gobs of stuff, see wxPython/README.txt for details
+#
+# Revision 1.5 1999/02/20 09:04:43 RD
+# Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
+# window handle. If you can get the window handle into the python code,
+# it should just work... More news on this later.
+#
+# Added wxImageList, wxToolTip.
+#
+# Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
+# wxRegConfig class.
+#
+# As usual, some bug fixes, tweaks, etc.
+#
+# Revision 1.4 1998/12/16 22:12:46 RD
+#
+# Tweaks needed to be able to build wxPython with wxGTK.
+#
# Revision 1.3 1998/12/15 20:44:35 RD
# Changed the import semantics from "from wxPython import *" to "from
# wxPython.wx import *" This is for people who are worried about
# Revision 1.3 1998/12/15 20:44:35 RD
# Changed the import semantics from "from wxPython import *" to "from
# wxPython.wx import *" This is for people who are worried about