Re: Need help in GTK3 Draw event

2018-04-30 Thread Marius Gedminas
On Thu, Apr 26, 2018 at 10:53:00AM +0530, Dhrubajyoti Doley wrote: > I am developing an application where I have to show/draw whitespaces, tabs > and enter. Perhaps GtkSourceView could be useful here? It can already draw whitespace (and a lot of other things). https://wiki.gnome.org/Projects/Gtk

Re: Need help in GTK3 Draw event

2018-04-28 Thread Eric Cashon via gtk-app-devel-list
Hi Dhrubajyoti, The textview widget has text tags built in that you can use to draw rectangles around text. If you want to draw a rectangle to block out text you can match the background and foreground colors. This code works on Ubuntu16.04, GTK3.18 and Python2.7. Give it a try and see if