When I run the following code:
dialog = Gtk.MessageDialog.new(
None,
Gtk.DialogFlags.MODAL,
Gtk.MessageType.QUESTION,
Gtk.ButtonsType.YES_NO,
f'Do you really want to {action} "{data["list_element"].name}" ?',
)
I get this error:
Dialog constructor cannot be used to create instances of a subclass MessageDialog
What does it mean? How do I solve it?