[IPython-dev] igrid

Walter Dörwald walter@livinglogic...
Mon Mar 19 03:34:29 CDT 2007


Fernando Perez wrote:

> On 3/12/07, Nikolas Tautenhahn <virtual@gmx.de> wrote:
>> Hi there,
>>
>> Walter Dörwald wrote:
>>
>>>>>> ipython -wthread
>>>>>>
>>>>>> but got all kinds of error messages.  It would be great if it could
>>>>>> work there, since then people could pop igrid browsers while retaining
>>>>>> normal control of their shell, much like matplotlib (with the WX
>>>>>> backend) or the Enthought tools work.
>>>> I don't see any problems here with -wthread (except that the next input
>>>> prompt doesn't start on the next line). This is with wx 2.8/Python
>> 2.4.3
>>>> on Windows.
>>>>
>>>> Can you post what error messages you got?
> 
> Here's what I see:
> 
> ---------------------------------------------------------------------------
> wx._core.PyNoAppError                              Traceback (most
> recent call last)
> 
> /home/fperez/usr/lib/python2.4/site-packages/IPython/Extensions/igrid.py
> in GetAttr(self, *args)
>     133     def GetAttr(self, *args):
>     134         attr = wx.grid.GridCellAttr()
> --> 135         attr.SetFont(wx.Font(self.fontsize, wx.TELETYPE,
> wx.NORMAL, wx.NORMAL))
>     136         return attr
>     137
> 
> /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_gdi.py in
> __init__(self, *args, **kwargs)
>    1720         """
>    1721         if kwargs.has_key('faceName'): kwargs['face'] =
> kwargs['faceName'];del kwargs['faceName']
> -> 1722         newobj = _gdi_.new_Font(*args, **kwargs)
>    1723         self.this = newobj.this
>    1724         self.thisown = 1
> 
> PyNoAppError: The wx.App object must be created first!
> 
> This message gets printed zillions of times, since it seems to be
> triggered by an event handler on mouse movement.  So basically the
> screen goes nuts printing this same traceback over and over as fast as
> it can.

OK, this seems to be wx related. I'll downgrade my wx on Windows to 2.6 
and we'll see what happens.

Servus,
    Walter


More information about the IPython-dev mailing list