mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 13:00:07 +01:00
1) Update documentation generator for `InfoBar`, `ListCtrl` and new additions; 2) Correct the `writeIfChanged` method, we can't use `str(text)` if the wxWidgets docs contain non-ascii compliant docstrings. Just treat them as unicode objects and use `codecs.open` to compare existing files with new docstrings; 3) Add empty stubs for the `ListCtrl Overview` and `Internationalization`, hopefully someone will populate them... 4) Small fix to the `MigrationGuide.txt`. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
21 lines
627 B
Python
21 lines
627 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)
|
|
|