How to add a title to Gtk.MessageDialog

I am trying to add a title to my python conversations, but I could not do this.

This is my code:

dialog=Gtk.MessageDialog(None, 0, Gtk.MessageType.ERROR, Gtk.ButtonType.OK, "wrong password")
dialog.run()
dialog.close()
+4
source share
1 answer

You can install it with:

dialog.set_title ("My app name")
+2
source

Source: https://habr.com/ru/post/1674473/


All Articles