dabo Commit
Revision 3384
Date: 2007-09-18 04:02:53 -0700 (Tue, 18 Sep 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3384
Changed:
U trunk/dabo/ui/uiwx/dFileDialog.py
Log:
Modified the multiple-select code to work with both wxPython 2.6 and 2.8
versions of the style constant.
Diff:
Modified: trunk/dabo/ui/uiwx/dFileDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dFileDialog.py 2007-09-17 23:34:02 UTC (rev 3383)
+++ trunk/dabo/ui/uiwx/dFileDialog.py 2007-09-18 11:02:53 UTC (rev 3384)
@@ -97,7 +97,10 @@
defaultFile="", wildcard="*.*", multiple=False,
style=wx.OPEN):
self._baseClass = dFileDialog
if multiple:
- style = style | wx.FD_MULTIPLE
+ # wxPython changed the constant after 2.6
+ multStyle = {True: wx.FD_MULTIPLE, False:
wx.MULTIPLE}[wx.VERSION >= (2, 7)]
+ style = style | multStyle
+
self._multiple = True
else:
self._multiple = False
_______________________________________________
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]