mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: center label in message area
This commit is contained in:
parent
b61e806009
commit
90b1c875df
@ -22,6 +22,10 @@ class AbortDialog(Gtk.MessageDialog):
|
||||
msg = textwrap.fill(string, 50)
|
||||
self.format_secondary_text(msg)
|
||||
|
||||
ma = self.get_message_area()
|
||||
label = ma.get_children()[1]
|
||||
label.set_justify(Gtk.Justification.CENTER)
|
||||
|
||||
aa = self.get_action_area()
|
||||
aa.set_margin_bottom(20)
|
||||
aa.set_layout(Gtk.ButtonBoxStyle.CENTER) # type: ignore
|
||||
|
||||
Loading…
Reference in New Issue
Block a user