Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wx
- def wxMsgBox(Title, Content, MsgType=wx.OK, Icon=wx.ICON_INFORMATION):
- app = wx.PyApp()
- dlg = wx.MessageDialog(None, Content ,Title ,MsgType | Icon)
- retCode = dlg.ShowModal()
- try:
- print 1/0 #zerodivision error
- except Exception,e: wxMBox.wxMsgBox("Exception", str(e), wxMBox.wx.OK, wxMBox.wx.ICON_ERROR)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement