Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.LogNull.1.py
2016-05-18 16:38:18 -07: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