mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
PR 42 from Metallicow. Py3 and Phoenix updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -687,6 +687,8 @@ class ImageDialog(wx.Dialog):
|
||||
if len(self.fl_list):
|
||||
self.tb.Set(self.fl_list)
|
||||
|
||||
if sys.version_info[0] == 3:
|
||||
xrange = range
|
||||
for idir in xrange(self.fl_ndirs):
|
||||
d = self.fl_list[idir]
|
||||
# mark directories as 'True' with client data
|
||||
@@ -696,7 +698,7 @@ class ImageDialog(wx.Dialog):
|
||||
try:
|
||||
self.tb.SetSelection(0)
|
||||
self.SetListValue(0)
|
||||
except:
|
||||
except Exception:
|
||||
self.image_view.SetValue(None)
|
||||
else:
|
||||
self.image_view.SetValue(None)
|
||||
|
||||
Reference in New Issue
Block a user