NameError: global name 'app' is not defined

Hi all,

The svn version raises a name error.

Traceback (most recent call last):
  File "lshape.py", line 49, in ?
    figure(1)
  File "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py", line
865, in figure
    figManager = new_figure_manager(num, figsize=figsize, dpi=dpi,
facecolor=facecolor, edgecolor=edgecolor, frameon=frameon, Fi
gureClass=FigureClass, **kwargs)
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 135, in new_figure_manager
    backend_wx._create_wx_app()
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1221, in _create_wx_app
    _create_wx_app.theWxApp = app
NameError: global name 'app' is not defined

Nils