Hello,
I'm using gnome-python-2.10. I can't seem to push, pop or set anything
to gnome.ui's AppBar widget. I'm getting the following warning
messages.
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:1157:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.pop()
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:1158:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.push(string)
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:1190:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.pop()
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:1191:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.push(string)
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:795:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.pop()
/home/ubuntu/Desktop/scribes/scribeslib/editor_async.py:796:
GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)'
failed
self.status_one.push(string)
Here are excerpts from my code:
gnome.program_init("App", "App_version")
def create_status_one(self):
status_one = gnome.ui.AppBar(True)
status_one.set_homogeneous(True)
status_one.set_double_buffered(True)
status_one.set_default("")
self.status_one = status_one
return self.status_one
def load_string_timeout(self):
string = "The file \"" + self.filename + "\" is open"
self.status_one.pop()
self.status_one.push(string)
return False
gobject.timeout_add(7000, self.load_string_timeout)
What am I doing wrong?
Thanks
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/