You are not logged in.

#1 2006-04-09 23:39:50

Registered: 2006-01-31
Posts: 169

GTKTextView line background color


I'm writting a little source code editor using PyGTK for my own python education. Everything works, but I would like to be able to specify a background color for the current working line. I know how to use tags to change the background color for a specific line, but I don't know how to make this background color fill the full line, from left to right margin, not only the text part of the line.

I searched some help on google but it seems I can't find a solution (or maybe I don't know how to use google efficiently).

Any help would be appreciated, thanks.

I hope my post is understable :?


#2 2006-04-30 10:22:15

From: Naples - Italy
Registered: 2005-08-16
Posts: 42

Re: GTKTextView line background color

hmm... it seems not a simple task... maybe you should use some gdk objects to do this... i think will be helpfull... and try to post to the pygtk ml... maybe someone out there would know the answer...

"There's only two thing infinite: the universe and the human stupidity... and i'm not sure about universe"

Albert Einstein

gtkPacman - PyGTK package manager based on pacman


#3 2006-05-15 13:05:21

Registered: 2005-03-28
Posts: 25

Re: GTKTextView line background color

Maybe you have already solved it but someone else might look here for help.

The text-editor Scribes is written in PyGTK and seems to have that function, at least judging by the front-page screenshot, so check out their code.



Board footer

Powered by FluxBB