dabo Commit
Revision 3386
Date: 2007-09-18 06:26:26 -0700 (Tue, 18 Sep 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3386

Changed:
U   trunk/dabo/ui/uiwx/dFileDialog.py

Log:
Alternate fix to the multiple file style constant that changed from wxPython 
2.6 - 2.8.


Diff:
Modified: trunk/dabo/ui/uiwx/dFileDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dFileDialog.py   2007-09-18 11:03:02 UTC (rev 3385)
+++ trunk/dabo/ui/uiwx/dFileDialog.py   2007-09-18 13:26:26 UTC (rev 3386)
@@ -98,7 +98,10 @@
                self._baseClass = dFileDialog
                if multiple:
                        # wxPython changed the constant after 2.6
-                       multStyle = {True: wx.FD_MULTIPLE, False: 
wx.MULTIPLE}[wx.VERSION >= (2, 7)]
+                       try:
+                               multStyle = wx.FD_MULTIPLE
+                       except AttributeError
+                               multStyle = wx.MULTIPLE
                        style = style | multStyle
 
                        self._multiple = True




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to