mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-17 09:17:14 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
21 lines
607 B
Python
21 lines
607 B
Python
|
|
class MyFrame(wx.Frame):
|
|
|
|
def __init__(self, parent):
|
|
|
|
wx.Frame.__init__(self, parent, title='InfoBar!')
|
|
|
|
self.infoBar = wx.InfoBar(self)
|
|
|
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
|
sizer.Add(self.infoBar, wx.SizerFlags().Expand())
|
|
|
|
# ... add other frame controls to the sizer ...
|
|
self.SetSizer(sizer)
|
|
|
|
|
|
def SomeMethod(self):
|
|
|
|
self.infoBar.ShowMessage("Something happened", wx.ICON_INFORMATION)
|
|
|