What's the difference here?

I'm running wxPython on Windows and as far as I can tell,
wx.DirPickerCtrl doesn't allow me to create a new directory in the
dialog box. I have the option in wx.DirDialog.

I've attached a sample script that shows the difference.

Does anyone else get this strange behavior?

wx.version: 2.8.10.1 (msw-unicode)
sys.version: 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32
bit (Intel)]

testFilePathPanel.py (1.74 KB)

···

--
Josh English
Joshua.R.English@gmail.com
http://joshenglish.livejournal.com

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hi Josh,

wx.DirPickerCtrl doesn't allow me to create a new directory in the
dialog box. I have the option in wx.DirDialog.

Does anyone else get this strange behavior?

Not that strange !
The doc says:
"wx.DIRP_DEFAULT_STYLE The default style: includes
wx.DIRP_DIR_MUST_EXIST and, under wxMSW only, wx.DIRP_USE_TEXTCTRL."

Try the style wx.DD_DEFAULT_STYLE | wx.DIRP_USE_TEXTCTRL and it should
work as you wish.

Dominique

···

On Apr 30, 11:07 pm, Josh English <joshua.r.engl...@gmail.com> wrote:

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Thanks. That worked.

I didn't try it because the docs didn't hint at that, and I am
sometimes weary of using a style flag meant for one class on another
class.

Maybe I'll add this to the Wiki sometime soon.

···

On Fri, Apr 30, 2010 at 11:20 PM, Dominique <mydomdom@gmail.com> wrote:

wx.DD_DEFAULT_STYLE | wx.DIRP_USE_TEXTCTRL

--
Josh English
Joshua.R.English@gmail.com

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en