cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nhatmi
Level 4

How to show message box with OK and CANCEL buttons and type WARNING

How to show message like the image below 

message.jpg

Labels (1)
0 Kudos
(2) Replies
jacklin456
Level 2

messagebox can display information to a user. There are three ... "Error message") messagebox.showwarning("Warning","Warning message"). 15.8.2. Yes/No Questions¶. The tkinter messagebox object also allows you to ask a user simple yes/no type questions and varies the button names based on the type of question.

box is a special dialog box that is displayed in a graphical user interface when ... A dialog created this way will contain a yellow triangle warning symbol .

https://customerfeedbacks.info/

0 Kudos
Varaprasad
Level 7 Flexeran
Level 7 Flexeran

As mentioned in installscript MessageBox documentation, you can use multiple style values supported by Windows MessageBox API for type field using logical OR operator (|).

For your case, you can use it like below.

MessageBox("Test", 0x00000004 | 0x00000030);

For supported styles, refer below msdn documentation of MessageBox API

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox

0 Kudos