[pygtk] gtk.TextView changing the line

Amit Sethi amit.pureenergy at gmail.com
Wed Jul 22 06:01:13 WST 2009


Hi all , I am trying to use gtk.TextView to show some data fetched
from web .... now although their is no problem adding any text to
gtk.TextView ... but I am is not able to change line when the line
ends ... Do I have to specify something specific for change line ?? or
is it done automatically  ?? If it is done automatically what is the
reason that it is not able to change line in this case....


def add_summary(self,summary):
		
		buffer=gtk.TextBuffer()
		buffer.set_text(summary)
		text_view=gtk.TextView(buffer)

		self.vbox2.pack_start(text_view)
	



-- 
A-M-I-T S|S


More information about the pygtk mailing list