0

次のように機能するメソッドが必要です。

def get_widget_type(widget_instance):
    return widget_type
    # widget_type : Gtk.Button , Gtk.Entry etc.
4

1 に答える 1

1

GTK に固有のものではありませんが、一般的な Python の場合:type(widget_instance)

于 2013-10-18T05:47:12.100 に答える