[pygtk] TextView width depending on maximum number of character per line

2003-10-22 Thread Dàvik
choose. I mean it for a courier-type font always of the same size. Is there any way to do it? Thank you in advance Dàvik --- Jabber: [EMAIL PROTECTED], [EMAIL PROTECTED] Mocosoft messenger: [EMAIL PROTECTED] PGP: 4DB2B81F

[pygtk] How to change font styles and markup labels using libglade?

2003-10-12 Thread Dàvik
er if it's actually possible. Any experience? Thank you in advance! Dàvik --- Jabber: [EMAIL PROTECTED], [EMAIL PROTECTED] Mocosoft messenger: [EMAIL PROTECTED] PGP: 4DB2B81F Some code: #TextView self.textview = self.ui.get_w

[pygtk] How to stop a key_press_event in a TextView to prevent to write a space?

2003-10-11 Thread Dàvik
7;'... Thank you in advance! Dàvik def key_pressed(self, widget, event): if event.keyval == gtk.gdk.keyval_from_name('space'): #If a space has been pressedprint 'space pressed' buffer = self.textview.get_buffer() iter

[pygtk] Get characters in a TextView

2003-10-10 Thread Dàvik
. Why all this? I want a TextView where no 2 spaces can be written one after the other, just like in lyx. Thank you in advance! Dàvik --- Jabber: [EMAIL PROTECTED], [EMAIL PROTECTED] Mocosoft messenger: [EMAIL PROTECTED] PGP: 4DB2B81F (pgp.