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:
Robin Dunn
2004-04-01 17:44:05 +00:00
parent 37ec2bd38b
commit 45cf74cccf
3 changed files with 183 additions and 131 deletions

View File

@@ -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)