Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/LogNull.1.py
Robin Dunn 611a5cb3a2 Add some new snippets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-02 23:39:41 +00:00

8 lines
310 B
Python

# There will normally be a log message if a non-existant file is
# loaded into a wx.Bitmap. It can be suppressed with wx.LogNull
noLog = wx.LogNull()
bmp = wx.Bitmap('bogus.png')
# when noLog is destroyed the old log sink is restored
del noLog