[!] if header > x then x = len(header)
This commit is contained in:
parent
65e38bf65a
commit
9055de6102
@ -85,6 +85,8 @@ class CTkMessageBox(ctk.CTkToplevel):
|
||||
_x += 20 # Add 20 pixels for padding on the left and right
|
||||
_x += 10 # Add 10 pixels for padding on the left and right
|
||||
|
||||
_x = max(_x, (len(self.header_map[mode]) * 16) + 25 + 20) # Set width to the length of the title if it's longer than the message
|
||||
|
||||
self._text = "\n".join(_text_slt)
|
||||
|
||||
_y = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user