-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_box.py
More file actions
24 lines (22 loc) · 932 Bytes
/
message_box.py
File metadata and controls
24 lines (22 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
from CTkMessagebox import CTkMessagebox
dirname = os.path.dirname(__file__)
warning_ico_path = os.path.join(dirname, 'warning.png')
def show_error_message(message="Invalid matrix data. Enter numbers only."):
return CTkMessagebox(title="Error",
message=message,
icon=warning_ico_path,
height=150,
width=300,
bg_color="#3E4754",
fg_color="#293241",
title_color="#EEEEEE",
text_color="#EEEEEE",
button_text_color="#EEEEEE",
button_width=80,
button_color="#293241",
cancel_button_color="#EEEEEE",
button_hover_color="#EE6C4D",
border_width=0,
#border_color="#3E4754"
)