mirror of
https://github.com/derrod/legendary.git
synced 2025-08-26 20:11:04 +00:00
fixed deprecated warnings for ask_sid()'s Gtk.MessageDialog
This commit is contained in:
parent
c86f5ae0cd
commit
5bea328678
|
@ -154,7 +154,7 @@ class main_window(Gtk.Window):
|
|||
main()
|
||||
|
||||
def ask_sid(parent):
|
||||
dialog = Gtk.MessageDialog(parent, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.QUESTION, Gtk.ButtonsType.OK_CANCEL)
|
||||
dialog = Gtk.MessageDialog(parent=parent, destroy_with_parent=True, message_type=Gtk.MessageType.QUESTION, buttons=Gtk.ButtonsType.OK_CANCEL)
|
||||
dialog.set_title("Enter Sid")
|
||||
#dialog.set_default_size(200, 200)
|
||||
|
||||
|
|
Loading…
Reference in a new issue