私はこれをすべて見てきましたが、うまくいく答えを見つけることができません。
element.get_allocation().y returns -1
element.get_allocation().height returns 1
これは、ラベルを作成するために使用するコードです
item_link_summary = Gtk.Label(item_summary)
item_link_summary.show()
self.layout1.put(item_link_summary, 0, top)
print item_link_summary.get_allocation().y