AUI is an Advanced User Interface library that aims to implement “cutting-edge” interface usability and design features so developers can quickly and easily create beautiful and usable application interfaces.
AUI attempts to encapsulate the following aspects of the user interface:
AUI adheres to the following principles:
The following example shows a simple implementation that uses framemanager.AuiManager to manage three text controls in a frame window:
import wx
import wx.lib.agw.aui as aui
class MyFrame(wx.Frame):
def __init__(self, parent, id=-1, title="AUI Test", pos=wx.DefaultPosition,
size=(800, 600), style=wx.DEFAULT_FRAME_STYLE):
wx.Frame.__init__(self, parent, id, title, pos, size, style)
self._mgr = aui.AuiManager()
# notify AUI which frame to use
self._mgr.SetManagedWindow(self)
# create several text controls
text1 = wx.TextCtrl(self, -1, "Pane 1 - sample text",
wx.DefaultPosition, wx.Size(200,150),
wx.NO_BORDER | wx.TE_MULTILINE)
text2 = wx.TextCtrl(self, -1, "Pane 2 - sample text",
wx.DefaultPosition, wx.Size(200,150),
wx.NO_BORDER | wx.TE_MULTILINE)
text3 = wx.TextCtrl(self, -1, "Main content window",
wx.DefaultPosition, wx.Size(200,150),
wx.NO_BORDER | wx.TE_MULTILINE)
# add the panes to the manager
self._mgr.AddPane(text1, AuiPaneInfo().Left().Caption("Pane Number One"))
self._mgr.AddPane(text2, AuiPaneInfo().Bottom().Caption("Pane Number Two"))
self._mgr.AddPane(text3, AuiPaneInfo().CenterPane())
# tell the manager to "commit" all the changes just made
self._mgr.Update()
self.Bind(wx.EVT_CLOSE, self.OnClose)
def OnClose(self, event):
# deinitialize the frame manager
self._mgr.UnInit()
self.Destroy()
event.Skip()
# our normal wxApp-derived class, as usual
app = wx.App(0)
frame = MyFrame(None)
app.SetTopWindow(frame)
frame.Show()
app.MainLoop()
Current wxAUI Version Tracked: wxWidgets 2.9.2 (SVN HEAD)
The wxPython AUI version fixes the following bugs or implement the following missing features (the list is not exhaustive):
Plus the following features:
AUI library is distributed under the wxPython license.
Latest Revision: Andrea Gavana @ 01 Apr 2012, 11.00 GMT
Version 1.3.
aui_constants | This module contains all the constants used by wxPython-AUI. |
aui_switcherdialog | Description |
aui_utilities | This module contains some common functions used by lib.agw.aui to |
auibar | auibar.py contains an implementation of AuiToolBar, which is a completely owner-drawn |
auibook | auibook.py contains a notebook control which implements many features common in |
dockart | Dock art provider code - a dock provider provides all drawing functionality to |
framemanager | Description |
tabart | Tab art provider code - a tab provider provides all drawing functionality to |
tabmdi |