Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I need a method that acts like this :
def get_widget_type(widget_instance): return widget_type # widget_type : Gtk.Button , Gtk.Entry etc.
不是特定于 GTK,而是一般的 Python:type(widget_instance)
type(widget_instance)