[wxPython-users] SetCellHighlightPenWidth problems

A.M. cuberootva at gmail.com
Wed Aug 30 08:29:40 PDT 2006


The RO stands for ReadOnly ;) Makes sense now...Use the RO option to
set the widths for ReadOnly celss and the regular pen width method for
regular cells.

On 8/30/06, A. M. <cuberootva at gmail.com> wrote:
> Haha, yeah I was messing with values thinking that it was adding 1 to
> the width I was trying to set but I forgot to set it back to 3 :)
>
> Thanks, I will check out the RO option.
>
> On 8/30/06, Gavana, Andrea <gavana at kpo.kz> wrote:
> > Hello,
> >
> > > I have encountered a weird problem with wx.grid.Grid where
> > > cells with the ReadOnly attribute  do not respect the
> > > SetCellHighlightPenWidth setting. Below you will find a test
> >
> > <snip>
> >
> > >         # set cursor width
> > >         self.SetCellHighlightPenWidth(-1)
> >
> > I think you meant:
> >
> >           # set cursor width
> >           self.SetCellHighlightPenWidth(3)
> >
> > It seems like a bug, or maybe is an undocumented "feature". Robin will have a better answer. In the meanwhile, try to use this function instead:
> >
> >
> >           # set cursor width
> >           self.SetCellHighlightROPenWidth(3)
> >
> > I have absolutely no idea about the difference between the two methods (and also about the names, what does "RO" mean?!?!), but it seems to work here.
> >
> > HTH.
> >
> > Andrea.
> >
> >
> > _________________________________________
> > Andrea Gavana (gavana at kpo.kz)
> > Reservoir Engineer
> > KPDL
> > 4, Millbank
> > SW1P 3JA London
> >
> > Direct Tel: +44 (0) 20 717 08936
> > Mobile Tel: +44 (0) 77 487 70534
> > Fax: +44 (0) 20 717 08900
> > Web: http://xoomer.virgilio.it/infinity77
> > ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
> >
> >
>




More information about the wxpython-users mailing list