[wxPython-users] Any way to disable this graphical glitch?

Laurent Dufréchou laurent.dufrechou at gmail.com
Mon Dec 3 06:50:40 PST 2007


Thanks andrea,
That worked.

-----Message d'origine-----
De : Andrea Gavana [mailto:andrea.gavana at gmail.com] 
Envoyé : lundi 3 décembre 2007 11:53
À : wxPython-users at lists.wxwidgets.org
Objet : Re: [wxPython-users] Any way to disable this graphical glitch?

Hi Laurent,

On Dec 2, 2007 11:28 PM, Laurent Dufrechou wrote:
> Hi,
> I'm using a wx.TextCtrl with a black background.
> Let say my TextCtrl instance is 't'.
> When I do t.Remove(t.GetLastPosition()-10, t.GetLastPosition())
> The text is selected THEN it is deleted.
> As the selection color is Blue it makes a graphical glitch.
>
> Is there a way to set selection color to background color or perhaps
another
> way to avoid the glitch??

You could try to use something like:

yourTextCtrl.Freeze()

# your code to delete text and whatever you want here

yourTextCtrl.Thaw()

and see if it does what you want :-D

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.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