Re: wxPython: How to get letter colour from TextCtrl

2010-05-17 Thread Stef Mientki
On 17-05-2010 23:29, D. Schramm wrote: > Hello, > > I've got a problem getting the colour of a single letter within the > TextCtrl widget: > > letterstyle = wx.TextAttr() > self.p1.GetStyle(self.p1.XYToPosition(0,0),letterstyle) > color = letterstyle.GetTextColour() > print color > > This should di

wxPython: How to get letter colour from TextCtrl

2010-05-17 Thread D. Schramm
Hello, I've got a problem getting the colour of a single letter within the TextCtrl widget: letterstyle = wx.TextAttr() self.p1.GetStyle(self.p1.XYToPosition(0,0),letterstyle) color = letterstyle.GetTextColour() print color This should display the colour value of the very first letter in the