Dockable File browser

I was hoping I could find a built-in File Browser widget that could be
docked in the parent frame.

I know the wx code just wraps the native Windows API call.

After looking through the wxdemo, I found the File Dialog demo and
tried to make some changes.

I've tried adding
self.parent=parent

inside __init__()

then

parent=self.parent

to the FileDialog() call.

No errors were shown, but the dialog was never displayed.

Basically I"m looking for something like the File browser on the left
side of this
image, although the style isn't too important.

http://tinyurl.com/2aan8aa

Having a dockable file browser is more convenient than using a popup
dialog at times.

Does a dockable File Browser exist in wxPython?

If not, I know one can be written, I don't want to reinvent if I don't
have to.

I think you need to implement the wx.DirPickerCtrl widget and set the proper style flag so that you can make the widget dockable. And since this wx.DirPickerCtrl inherits from wx.Window, you can use one (or more, of course) of the wx.Window’s styles for the wx.DirPickerCtrl widget. Anyone please correct me if I am wrong here.

···

On Sun, Oct 17, 2010 at 3:54 AM, cappy2112 cappy2112@gmail.com wrote:

I was hoping I could find a built-in File Browser widget that could be

docked in the parent frame.

I know the wx code just wraps the native Windows API call.

After looking through the wxdemo, I found the File Dialog demo and

tried to make some changes.

I’ve tried adding

self.parent=parent

inside init()

then

parent=self.parent

to the FileDialog() call.

No errors were shown, but the dialog was never displayed.

Basically I"m looking for something like the File browser on the left

side of this

image, although the style isn’t too important.

http://tinyurl.com/2aan8aa

Having a dockable file browser is more convenient than using a popup

dialog at times.

Does a dockable File Browser exist in wxPython?

If not, I know one can be written, I don’t want to reinvent if I don’t

have to.

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Hi,

···

On Sat, Oct 16, 2010 at 8:54 PM, cappy2112 <cappy2112@gmail.com> wrote:

Does a dockable File Browser exist in wxPython?

Use wx.aui.AuiManager to manage the docking, and just put a
wx.GenericDirCtrl in it.

Cody

Thanks, but ....

I think you need to implement the wx.DirPickerCtrl widget and set the proper

Correct me if I'm wrong, but this is a Directory browser, not a File
Browser.
I need for the user to be able to select files.

Is anyone else having this problem on Windows 7 Pro (32-bit)?
When I pass the directory path to the DirPickerCtrl, the path is
ignored.
The DirPicker starts at C:\\.

I remember seeing this a while ago.

I'm using wx '2.8.11.0', Python 2.6.6

Try installing Python 2.7 and then install wxPython 2.8.11 Unicode for Python 2.7. Just a test if anything would change.

···

On Mon, Oct 18, 2010 at 7:31 AM, cappy2112 cappy2112@gmail.com wrote:

Thanks, but …

I think you need to implement the wx.DirPickerCtrl widget and set the proper

Correct me if I’m wrong, but this is a Directory browser, not a File

Browser.

I need for the user to be able to select files.

Is anyone else having this problem on Windows 7 Pro (32-bit)?

When I pass the directory path to the DirPickerCtrl, the path is

ignored.

The DirPicker starts at C:\.

I remember seeing this a while ago.

I’m using wx ‘2.8.11.0’, Python 2.6.6

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I think I had some problems with the 2.7 installer on Windows, and had
to back down to 2.6.6

···

On Oct 19, 9:49 am, Boštjan Mejak <bostjan.me...@gmail.com> wrote:

Try installing Python 2.7 and then install wxPython 2.8.11 Unicode for
Python 2.7. Just a test if anything would change.

On Mon, Oct 18, 2010 at 7:31 AM, cappy2112 <cappy2...@gmail.com> wrote:

> Thanks, but ....
> > I think you need to implement the wx.DirPickerCtrl widget and set the
> proper
> Correct me if I'm wrong, but this is a Directory browser, not a File
> Browser.
> I need for the user to be able to select files.

> Is anyone else having this problem on Windows 7 Pro (32-bit)?
> When I pass the directory path to the DirPickerCtrl, the path is
> ignored.
> The DirPicker starts at C:\\.

> I remember seeing this a while ago.

> I'm using wx '2.8.11.0', Python 2.6.6

> --
> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com<wxPython-users%2Bunsubscribe@googlegroups.com>
> or visithttp://groups.google.com/group/wxPython-users?hl=en

Really? What kind of problems? It seems to me that your computer is broken and so you don’t see expected results of your application. Just a thought to hang on. :wink:

···

On Wed, Oct 20, 2010 at 6:42 AM, cappy2112 cappy2112@gmail.com wrote:

I think I had some problems with the 2.7 installer on Windows, and had

to back down to 2.6.6

On Oct 19, 9:49 am, Boštjan Mejak bostjan.me...@gmail.com wrote:

Try installing Python 2.7 and then install wxPython 2.8.11 Unicode for

Python 2.7. Just a test if anything would change.

On Mon, Oct 18, 2010 at 7:31 AM, cappy2112 cappy2...@gmail.com wrote:

Thanks, but …

I think you need to implement the wx.DirPickerCtrl widget and set the

proper

Correct me if I’m wrong, but this is a Directory browser, not a File

Browser.

I need for the user to be able to select files.

Is anyone else having this problem on Windows 7 Pro (32-bit)?

When I pass the directory path to the DirPickerCtrl, the path is

ignored.

The DirPicker starts at C:\.

I remember seeing this a while ago.

I’m using wx ‘2.8.11.0’, Python 2.6.6

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.comwxPython-users%2Bunsubscribe@googlegroups.com

or visithttp://groups.google.com/group/wxPython-users?hl=en

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Hi,

Really? What kind of problems? It seems to me that your computer is broken
and so you don't see expected results of your application. Just a thought to
hang on. :wink:

FYI: the version of Python that you use has little to no affect on how
wxPython will work. So suggesting to update the Python version as a
fix is not going to make any difference on how a wx control works.

As for the DirPickerCtrl, I am seeing similar behavior. If I set the
initial path to be the root of a drive (i.e C:\\ or V:\\, etc..) then
the dialog will correctly have that path selected but if I try
something like r"C:\\Windows" then the dialog selects "My Documents"
by default. May want to check trac for a reported bug or report it if
it hasn't been already.

p.s) Could you guys please not top post
(Posting style - Wikipedia)? It makes it really hard
to follow the discussion. Its preferred to bottom post like I did in
this reply by putting my response below previous text.

Thanks,

Cody

···

2010/10/20 Boštjan Mejak <bostjan.mejak@gmail.com>:

No- someone on the list confirmed a bug with the installer. It was
fixed in 3.x but not ported to 2.x

···

On Oct 20, 10:21 am, Boštjan Mejak <bostjan.me...@gmail.com> wrote:

Really? What kind of problems? It seems to me that your computer is broken
and so you don't see expected results of your application. Just a thought to
hang on. :wink:

On Wed, Oct 20, 2010 at 6:42 AM, cappy2112 <cappy2...@gmail.com> wrote:
> I think I had some problems with the 2.7 installer on Windows, and had
> to back down to 2.6.6

> On Oct 19, 9:49 am, Boštjan Mejak <bostjan.me...@gmail.com> wrote:
> > Try installing Python 2.7 and then install wxPython 2.8.11 Unicode for
> > Python 2.7. Just a test if anything would change.

> > On Mon, Oct 18, 2010 at 7:31 AM, cappy2112 <cappy2...@gmail.com> wrote:

> > > Thanks, but ....
> > > > I think you need to implement the wx.DirPickerCtrl widget and set the
> > > proper
> > > Correct me if I'm wrong, but this is a Directory browser, not a File
> > > Browser.
> > > I need for the user to be able to select files.

> > > Is anyone else having this problem on Windows 7 Pro (32-bit)?
> > > When I pass the directory path to the DirPickerCtrl, the path is
> > > ignored.
> > > The DirPicker starts at C:\\.

> > > I remember seeing this a while ago.

> > > I'm using wx '2.8.11.0', Python 2.6.6

> > > --
> > > To unsubscribe, send email to
> wxPython-users+unsubscribe@googlegroups.com<wxPython-users%2Bunsubscribe@googlegroups.com>
> <wxPython-users%2Bunsubscribe@googlegroups.com<wxPython-users%252Bunsubscribe@googlegroups.com>

> > > or visithttp://groups.google.com/group/wxPython-users?hl=en

> --
> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com<wxPython-users%2Bunsubscribe@googlegroups.com>
> or visithttp://groups.google.com/group/wxPython-users?hl=en

I've just read this
http://www.idallen.com/topposting.html

I didn't realize this was a problem. I've been doing it for a long
time- my apologies.

···

On Oct 20, 10:41 am, Cody Precord <codyprec...@gmail.com> wrote:

Hi,

2010/10/20 Boštjan Mejak <bostjan.me...@gmail.com>:

> Really? What kind of problems? It seems to me that your computer is broken
> and so you don't see expected results of your application. Just a thought to
> hang on. :wink:

FYI: the version of Python that you use has little to no affect on how
wxPython will work. So suggesting to update the Python version as a
fix is not going to make any difference on how a wx control works.

As for the DirPickerCtrl, I am seeing similar behavior. If I set the
initial path to be the root of a drive (i.e C:\\ or V:\\, etc..) then
the dialog will correctly have that path selected but if I try
something like r"C:\\Windows" then the dialog selects "My Documents"
by default. May want to check trac for a reported bug or report it if
it hasn't been already.

p.s) Could you guys please not top post
(Posting style - Wikipedia)?