[wxPython-dev] Using AUI in the demo

roee shlomo roee88 at gmail.com
Wed May 9 14:48:43 PDT 2007


It was empty, dunno why.
I deleted it and it works again, thanks.

btw,
I'm getting your recent replies in a separate threads, maybe because you're
sending them to lists.wxwindows.org rather than lists.wxwidgets.org.

On 5/9/07, Andrea Gavana <andrea.gavana at gmail.com> wrote:
>
> Hi Roee,
>
> > Traceback (most recent call last):
> >   File "C:\Program Files\wxPython2.8 Docs and Demos\demo\Main.py", line
> > 2067, in
> >  OnClose
> >     self.ShowMain()
> >   File "C:\Program Files\wxPython2.8 Docs and Demos\demo\Main.py", line
> > 2071, in
> >  ShowMain
> >     frame =3D wxPythonDemo(None, "wxPython: (A Demonstration)")
> >   File "C:\Program Files\wxPython2.8 Docs and Demos\demo\Main.py", line
> > 1221, in
> >  __init__
> >     self.ReadConfigurationFile()
> >   File "C:\Program Files\wxPython2.8 Docs and Demos\demo\Main.py", line
> > 1358, in
> >  ReadConfigurationFile
> >     self.expansionState =3D eval(fid.readline().strip().split(":")[1])
> > IndexError: list index out of range
>
> Uh?!? That's almost impossible... this is what the ReadConfigurationFile
> does:
>
>        optionsFile =3D opj(wx.GetHomeDir() +
> "/.wxPyDemo/wxPythonOptions.txt")
>        if not os.path.isfile(optionsFile):
>            self.expansionState =3D [0, 1]
>            return
>
>        fid =3D open(optionsFile, "rt")
>        self.expansionState =3D eval(fid.readline().strip().split(":")[1])
>
> That means that you have a file named wxPythonOptions.txt in your home
> directory but it is somewhat empty or bad written/formatted... or
> maybe something else?!?!
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-dev-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-dev-help at lists.wxwidgets.org
>
>


-- =

http://code.google.com/p/lh-abc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-dev/attachments/20070510=
/085d7492/attachment.htm


More information about the wxpython-dev mailing list