Demo tweaks to correct some visual glitches and event order issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -195,7 +195,10 @@ class MimeTypesDemoPanel(wx.Panel):
|
||||
tsizer.Fit(self)
|
||||
|
||||
# Populate the Known MIME types list with what is in the database
|
||||
mtypes = wx.TheMimeTypesManager.EnumAllFileTypes()
|
||||
try:
|
||||
mtypes = wx.TheMimeTypesManager.EnumAllFileTypes()
|
||||
except wx.PyAssertionError:
|
||||
mtypes = []
|
||||
for mt in mtypes:
|
||||
self.mimelist.Append(mt)
|
||||
|
||||
|
Reference in New Issue
Block a user