Reply
Thread Tools
HangLoose's Avatar
Posts: 319 | Thanked: 289 times | Joined on Sep 2009 @ Lisboa, Portugal
#1
I get the following error:

GtkWarning: gtk_table_attach: assertion `child->parent == NULL' failed
table.attach(button, 0, 1, 0, 1)
Because of the following code:
Code:
table = gtk.Table(1, 1, True)
...
button = hildon.Button(gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL, "Hello world!")
...
table.attach(button, 0, 1, 0, 1)
win.add(table)
button.show()
win.show_all()
gtk.main()
Any idea on how to fix that or an equivalent for gtk.Table? I found an example of gtk.Table on pyqt website but gives me the same error.

Also anyone knows a page that has examples of containers that work with Maemo?
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#2
Originally Posted by HangLoose View Post
I get the following error:



Because of the following code:
Code:
table = gtk.Table(1, 1, True)
...
button = hildon.Button(gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL, "Hello world!")
...
table.attach(button, 0, 1, 0, 1)
win.add(table)
button.show()
win.show_all()
gtk.main()
Any idea on how to fix that or an equivalent for gtk.Table? I found an example of gtk.Table on pyqt website but gives me the same error.
The previous code works for me perfectly without any error (in Maemo 5), so the problem could be in other place.


Also anyone knows a page that has examples of containers that work with Maemo?
I don't know very well that you mean for "work with Maemo", every Gtk+ container working in other system also should work in Maemo.
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following User Says Thank You to yerga For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:25.