mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
We can do lots more than just an app and a frame these days, so let's do more in our Hello World sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4,6 +4,12 @@ print wx.version()
|
||||
|
||||
app = wx.App()
|
||||
frm = wx.Frame(None, title="Hello World!")
|
||||
|
||||
pnl = wx.Panel(frm)
|
||||
pnl.BackgroundColour = 'sky blue'
|
||||
st = wx.StaticText(pnl, -1, 'This is wxPython\n%s' % wx.version(), (15,15))
|
||||
st.SetFont(wx.Font(14, wx.FONTFAMILY_SWISS, wx.FONTFLAG_BOLD))
|
||||
|
||||
frm.Show()
|
||||
app.MainLoop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user