Hi,
I have a string that a textview can't display. It contains invalid chars:
t = Let's check this out.\x00
import gtk
tv = gtk.TextView()
b = tv.get_buffer()
b.set_text(t)
__main__:1: GtkWarning: gtk_text_buffer_emit_insert: assertion
`g_utf8_validate (text, len, NULL)' failed
but when I
John Ehresman wrote:
Yann Leboulanger wrote:
Hi,
I have a string that a textview can't display. It contains invalid chars:
t = Let's check this out.\x00
import gtk
tv = gtk.TextView()
b = tv.get_buffer()
b.set_text(t)
__main__:1: GtkWarning: gtk_text_buffer_emit_insert: assertion
The combo is just a Viewer, it never stores data, just shows it. In
order to retrieve data you need to use the model (liststore, treestore,
or another TreeModel kind of object)
On Fri, 2007-11-30 at 06:24 -0800, awalter1 wrote:
Hi,
I have some difficulties to manipulate ListStore. I define a
Hi,
I'm using a gtk.Entry() to enter text.
I want to set the focus to this widget and I've tried the
myEntry.grab_focus() and the mywin.set_focus(myEntry) méthods.
Both make the text of the entry area be selected (reverse video).
Then how to avoid this text selection when focus methods are used
Hi,
I have some difficulties to manipulate ListStore. I define a liststore and
associated it to a combobox:
liststore = gtk.ListStore(str)
fieldCombo = gtk.ComboBox(liststore)
liststore.append(['Field'])
for field in l_fields:
liststore.append([field])
fieldCombo.connect('changed',
Yann Leboulanger wrote:
import gtk
tv = gtk.TextView()
b = tv.get_buffer()
t = Let's check this out.\x00
u = unicode(t, 'utf-8')
b.set_text(t)
__main__:1: GtkWarning: gtk_text_buffer_emit_insert: assertion
`g_utf8_validate (text, len, NULL)' failed
but b.set_text(u) works ... is it the way to