mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 12:30:07 +01:00
Phoenix:
- Add the BannerWindow sample to the snippets; - Add the animationctrl.png images for the various platforms. I'm running out of space at the xoomer domain :-( git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 840 B |
Binary file not shown.
|
After Width: | Height: | Size: 922 B |
Binary file not shown.
|
After Width: | Height: | Size: 868 B |
@@ -0,0 +1,23 @@
|
||||
|
||||
class MyFrame(wx.Frame):
|
||||
|
||||
def __init__(self, parent):
|
||||
|
||||
# ... create the frame itself ...
|
||||
wx.Frame.__init__(self, parent)
|
||||
|
||||
# Create and initialize the banner.
|
||||
banner = wx.BannerWindow(self, wx.TOP)
|
||||
banner.SetText("Welcome to my wonderful program",
|
||||
" Before doing anything else, you need to connect to "
|
||||
"the online server.\n"
|
||||
" Please enter your credentials in the controls below.")
|
||||
|
||||
# And position it along the left edge of the window.
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
sizer.Add(banner, wx.SizerFlags().Expand())
|
||||
|
||||
# ... add the rest of the window contents to the same sizer ...
|
||||
|
||||
self.SetSizerAndFit(sizer)
|
||||
|
||||
Reference in New Issue
Block a user