You are not logged in.

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

Chman
Member
Registered: 2006-01-31
Posts: 169
Website

GTKTextView line background color

Hi,

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 :?

Offline

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

ragnarok
Member
From: Naples - Italy
Registered: 2005-08-16
Posts: 42
Website

Re: GTKTextView line background color

hmm... it seems not a simple task... maybe you should use some gdk objects to do this... i think http://www.pygtk.org/pygtk2reference/index.html 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
https://gtkpacman.berlios.de

Offline

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

mr_echo
Member
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.

URL:
http://scribes.sourceforge.net/

Offline

Board footer

Powered by FluxBB