-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageBoxs.py
More file actions
37 lines (29 loc) · 1.06 KB
/
MessageBoxs.py
File metadata and controls
37 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import wx
class MessageBoxs():
def __init__(self, Message,Title):
self.Message=Message
self.Title=Title
def Error_Message_Box(self):
self.msg = wx.MessageDialog(None, self.Message, self.Title,
wx.OK | wx.ICON_ERROR)
self.msg.ShowModal()
self.msg.Destroy()
def Info_Message_Box(self):
self.msg = wx.MessageDialog(None, self.Message, self.Title,
wx.OK |wx.ICON_INFORMATION)
self.msg.ShowModal()
self.msg.Destroy()
def Qustion_Message_Box(self):
self.msg=wx.MessageDialog(None, self.Message, self.Title,
wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION)
return self.msg.ShowModal()
self.msg.Destroy()
def No_Button_Message_Box(self):
self.msg=wx.MessageDialog(None, self.Message, self.Title,
wx.ICON_INFORMATION)
self.msg.CenterOnParent()
self.msg.Show(True)
self.msg.SetFocus()
def Close_No_Button_Message_Box(self):
self.msg.Close()
self.msg.Destroy()