wx.NotificationMessage AttributeError: 'module' object has no attribute 'NotificationMessage'

Posted by HughGrigg on Stack Overflow See other posts from Stack Overflow or by HughGrigg
Published on 2012-09-27T14:42:41Z Indexed on 2012/11/06 17:00 UTC
Read the original article Hit count: 280

Filed under:
|
|

I get this error when trying to use wxPython's NotificationMessage class:

wx.NotificationMessage("", "Hello world!").Show() AttributeError: 'module' object has no attribute 'NotificationMessage'

The code is quite simply:

#!/usr/bin/python

import wx

app = wx.App()

wx.NotificationMessage("", "Hello world!").Show()

app.MainLoop()

What am I missing?

This is running on Linux Mint 13, MATE 1.2 desktop environment, Python 2.7.3.

© Stack Overflow or respective owner

Related posts about python

Related posts about linux