On Wed, 18 Aug 2004 18:05:11 +0200, Mark Achtman <achtman@mpiib-berlin.mpg.de> wrote:
This sounds great but doesn't seem to be true according to the editor
I'm using or I'm missing an import.
There doesn't seem to be a wx.PyDefaultPosition but there does seem
to be a wx.BITMAP_TYPE_ICO. Possibly there are simple rules on
what could or should be replaced by wx. ???
Send reply to: wxPython-users@lists.wxwidgets.org
Date sent: Wed, 18 Aug 2004 17:43:50 +0200
From: Mikael Norgren <that1swede@gmail.com>
Send reply to: Mikael Norgren <that1swede@gmail.com>
To: wxpython-users@lists.wxwidgets.org, achtman@mpiib-berlin.mpg.de
Subject: Re: [wxPython-users] what happened to wxConfig?
> All wxSomethingSomething should now be wx.SomethingSomething, check
> the migration guide on the wxPython site. Find any instance of 'wx'
> and replace it with 'wx.' and see if that helps the app.
>
> On Wed, 18 Aug 2004 17:35:04 +0200, Mark Achtman > > <achtman@mpiib-berlin.mpg.de> wrote:
> > Thanks for the suggestions. Unfortunately, neither helped. Changing
> > wxSTATIC_BORDER to wx.STATIC_BORDER and wxVSCROLL to
> > wx.VSCROLL didn't change the problem. Similarly, deleting
> > wxSTATIC_BORDER and using wxVSCROLL or wx.VSCROLL also
> > didn't help.
> >
> > I attach the whole function, maybe there is something else in there that
> > will be obvious to you and which I'm missing
> >
> > > On Wed, 18 Aug 2004 17:02:21 +0200, Mark Achtman > > > > <achtman@mpiib-berlin.mpg.de> wrote:
> > >
> > > > great, that solved one problem. However, it immediately raised the
> > > > next one which is that within initiation of an application the call
> > > > self.list.SetWindowStyleFlag(wxSTATIC_BORDER|wxVSCROLL)
> > > > calls
> > > > wx\controls.py SetWindowStyleFlag
> > > >
> > > > in which
> > > > return _control_.ListCtrl_SetWindowStyleFlag(*args,**kwargs)
> > > > crashes with the error
> > > > wx._core.PyAssertionError: C++ assertion "nModes == 1" failed ...
> > > > because wxListCtrl style should have exactly one mode bit set.
> > > >
> > > > If there is an obvious way to fix this quickly, I would be once more
> > > > grateful.
> > >
> > > the fix is in the error message 
> > > remove the wxSTATIC_BORDER| part and live it like in:
> > > self.list.SetWindowStyleFlag(wxVSCROLL)
> > > or
> > > self.list.SetWindowStyleFlag(wx.VSCROLL)
> > >
> > > --
> > > Peter Damoc
> > > Hacker Wannabe
> > > http://www.sigmacore.net/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > > For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
> > >
> >
> >
> > _________________________
> > Mark Achtman
> > Max-Planck Institut für Infektionsbiologie
> > Schumannstr. 21/22
> > 10117 Berlin, Germany
> > Tel: +4930 28460751
> > Fax: +4930 28460750
> > e-mail: achtman@mpiib-berlin.mpg.de
> >
> > Co-Editor
> > Infection, Genetics and Evolution - http://www.elsevier.nl/locate/meegid
> >
> > You are invited to submit articles for the above journal
> > directly to me.
> >
> > Instructions to authors at the megiid website
> >
> >
> >
> > The following section of this message contains a file attachment
> > prepared for transmission using the Internet MIME message format.
> > If you are using Pegasus Mail, or any other MIME-compliant system,
> > you should be able to save it or view it from within your mailer.
> > If you cannot, please ask your system administrator for assistance.
> >
> > ---- File information -----------
> > File: fragment.py
> > Date: 18 Aug 2004, 17:20
> > Size: 2816 bytes.
> > Type: Text
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
_________________________
Mark Achtman
Max-Planck Institut für Infektionsbiologie
Schumannstr. 21/22
10117 Berlin, Germany
Tel: +4930 28460751
Fax: +4930 28460750
e-mail: achtman@mpiib-berlin.mpg.de
Co-Editor
Infection, Genetics and Evolution - http://www.elsevier.nl/locate/meegid
You are invited to submit articles for the above journal
directly to me.
Instructions to authors at the megiid website
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org