> import wx.aui
...
> import wx.lib.agw.aui as aui
...
> self._mgr = wx.aui.AuiManager(self)
...
> tb4 = aui.AuiToolBar(self, -1, wx.DefaultPosition,
> wx.DefaultSize, agwStyle=aui.AUI_TB_DEFAULT_STYLE | aui.AUI_TB_OVERFLOW
> | aui.AUI_TB_TEXT | aui.AUI_TB_HORZ_TEXT)
...
> self._mgr.AddPane(tb4,
> aui.AuiPaneInfo().Name("tb4").Caption("Sample Bookmark
> Toolbar").ToolbarPane().Top())
>
> When I run it, the line "self._mgr.AddPane(tb4, ....)" gives me a
> "expected argument 3 type int" error. Which part is wrong?
You are using and mixing two different implementations of the AUI
classes. Take out the first import and change your use of "wx.aui." to
"aui." and it should work. After you add a call to app.MainLoop().
--
Robin Dunn
Software Craftsman
http://wxPython.org