using a GenericDirCtrl

I've looked through the wxDemo- other than displaying directories and/
or files, it doesn't
look like you can do anything useful with this widget.

The demo doesn't show any events that are generated.
The wxAPI doesn't seem to be of help either,

How do I make this generate events- as files are selected/deselected?

Hi,

···

On Mon, Oct 18, 2010 at 10:39 PM, cappy2112 <cappy2112@gmail.com> wrote:

I've looked through the wxDemo- other than displaying directories and/
or files, it doesn't
look like you can do anything useful with this widget.

The demo doesn't show any events that are generated.
The wxAPI doesn't seem to be of help either,

How do I make this generate events- as files are selected/deselected?

Its just a specialized TreeCtrl, you can bind to TreeEvents for when
items are selected or activated and then just use the GenericDirCtrl's
GetFilePath() method to get the selected path.

http://docs.wxwidgets.org/trunk/classwx_tree_ctrl.html

Cody

Its just a specialized TreeCtrl, you can bind to TreeEvents for when
items are selected or activated and then just use the GenericDirCtrl's
GetFilePath() method to get the selected path.

wxWidgets: wxTreeCtrl Class Reference

Thanks.

This looks like it may work- but isn't there a simpler way
to have a widget that allows you to Browse directories and select
multiple files, while
that widget docked to a parent frame?

From what I can see- Tree's don't allow multiple selections (and they
shouldn't)

They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of
customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==

···

On 19 October 2010 09:03, cappy2112 wrote:

Its just a specialized TreeCtrl, you can bind to TreeEvents for when
items are selected or activated and then just use the GenericDirCtrl's
GetFilePath() method to get the selected path.

wxWidgets: wxTreeCtrl Class Reference

Thanks.

This looks like it may work- but isn't there a simpler way
to have a widget that allows you to Browse directories and select
multiple files, while
that widget docked to a parent frame?

From what I can see- Tree's don't allow multiple selections (and they
shouldn't)

Andrea, I have read your story about the awful removal company named RemovalGroup. I would sue them, but I don’t know how much evidence you have against those mother fukers. Well, I hope everything is behind you now and you have settled pretty well in Greece, both of you. I see Greece only on pictures and it looks beautiful there. I kind of envy you. But I don’t envy you the removal company. Just say fuk 'em and go on. I hope we meet again some day on IRC in the #wxpython chat room on Freenode. Take care.

···

On Tue, Oct 19, 2010 at 6:09 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

On 19 October 2010 09:03, cappy2112 wrote:

Its just a specialized TreeCtrl, you can bind to TreeEvents for when

items are selected or activated and then just use the GenericDirCtrl’s

GetFilePath() method to get the selected path.

http://docs.wxwidgets.org/trunk/classwx_tree_ctrl.html

Thanks.

This looks like it may work- but isn’t there a simpler way

to have a widget that allows you to Browse directories and select

multiple files, while

that widget docked to a parent frame?

From what I can see- Tree’s don’t allow multiple selections (and they

shouldn’t)

They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of

customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/

==> Never EVER use RemovalGroup for your house removal. You’ll

regret it forever.

http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html <==

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

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

Thanks- I like this reference.
Up to now, I had been using the installable wxPython API docs.
The wxWidgets reference gives you the styles & events all on one page.

···

On Oct 18, 9:09 pm, Andrea Gavana <andrea.gav...@gmail.com> wrote:

On 19 October 2010 09:03, cappy2112 wrote:

>> Its just a specialized TreeCtrl, you can bind to TreeEvents for when
>> items are selected or activated and then just use the GenericDirCtrl's
>> GetFilePath() method to get the selected path.

>>wxWidgets: wxTreeCtrl Class Reference

> Thanks.

> This looks like it may work- but isn't there a simpler way
> to have a widget that allows you to Browse directories and select
> multiple files, while
> that widget docked to a parent frame?

> From what I can see- Tree's don't allow multiple selections (and they
> shouldn't)

They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of
customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html&lt;==

Multidirdialog lets me select multiple folders, but not multiple
files.

I need to be able to select files.
wx.TR_MULTIPLE seems to only allow multiple directories- at least on
my system

···

On Oct 18, 9:09 pm, Andrea Gavana <andrea.gav...@gmail.com> wrote:

On 19 October 2010 09:03, cappy2112 wrote:

>> Its just a specialized TreeCtrl, you can bind to TreeEvents for when
>> items are selected or activated and then just use the GenericDirCtrl's
>> GetFilePath() method to get the selected path.

>>wxWidgets: wxTreeCtrl Class Reference

> Thanks.

> This looks like it may work- but isn't there a simpler way
> to have a widget that allows you to Browse directories and select
> multiple files, while
> that widget docked to a parent frame?

> From what I can see- Tree's don't allow multiple selections (and they
> shouldn't)

They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of
customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html&lt;==

Do you hold down the left CTRL key while you try to select multiple files?

···

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

Multidirdialog lets me select multiple folders, but not multiple

files.

I need to be able to select files.

wx.TR_MULTIPLE seems to only allow multiple directories- at least on

my system

On Oct 18, 9:09 pm, Andrea Gavana andrea.gav...@gmail.com wrote:

On 19 October 2010 09:03, cappy2112 wrote:

Its just a specialized TreeCtrl, you can bind to TreeEvents for when

items are selected or activated and then just use the GenericDirCtrl’s

GetFilePath() method to get the selected path.

http://docs.wxwidgets.org/trunk/classwx_tree_ctrl.html

Thanks.

This looks like it may work- but isn’t there a simpler way

to have a widget that allows you to Browse directories and select

multiple files, while

that widget docked to a parent frame?

From what I can see- Tree’s don’t allow multiple selections (and they

shouldn’t)

They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of

customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/

==> Never EVER use RemovalGroup for your house removal. You’ll

regret it forever.http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html<==

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

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

Yes, of course. That and a few other keys (one at a time)- out of
frustration.

···

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

Do you hold down the left CTRL key while you try to select multiple files?

On Wed, Oct 20, 2010 at 6:40 AM, cappy2112 <cappy2...@gmail.com> wrote:
> Multidirdialog lets me select multiple folders, but not multiple
> files.

> I need to be able to select files.
> wx.TR_MULTIPLE seems to only allow multiple directories- at least on
> my system

> On Oct 18, 9:09 pm, Andrea Gavana <andrea.gav...@gmail.com> wrote:
> > On 19 October 2010 09:03, cappy2112 wrote:

> > >> Its just a specialized TreeCtrl, you can bind to TreeEvents for when
> > >> items are selected or activated and then just use the GenericDirCtrl's
> > >> GetFilePath() method to get the selected path.

> > >>wxWidgets: wxTreeCtrl Class Reference

> > > Thanks.

> > > This looks like it may work- but isn't there a simpler way
> > > to have a widget that allows you to Browse directories and select
> > > multiple files, while
> > > that widget docked to a parent frame?

> > > From what I can see- Tree's don't allow multiple selections (and they
> > > shouldn't)

> > They do: see wx.TR_MULTIPLE and wx.TR_EXTENDED. An example of
> > customizing wx.GenericDirCtrl is in wx.lib.agw, inside MultiDirDialog.

> > Andrea.

> > "Imagination Is The Only Weapon In The War Against Reality."
>http://xoomer.alice.it/infinity77/

> > ==> Never *EVER* use RemovalGroup for your house removal. You'll
> > regret it forever.
>http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html&lt;==

> --
> 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

It doesn't work for me either on Windows XP, wxPython 2.8.10.1, Python
2.5.

···

On Oct 20, 10:13 pm, cappy2112 <cappy2...@gmail.com> wrote:

Yes, of course. That and a few other keys (one at a time)- out of
frustration.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Hi,

Yes, of course. That and a few other keys (one at a time)- out of
frustration.

It doesn't work for me either on Windows XP, wxPython 2.8.10.1, Python
2.5.

This is expected behavior. The GenericDirCtrl uses a single selection
TreeCtrl. I will say you can hack around it (with some caveats) by
accessing its TreeCtrl and changing the window style to include
TR_MULTIPLE.

Its not all that hard to make your own file browser control with a
TreeCtrl either.

Cody

···

On Thu, Oct 21, 2010 at 9:46 AM, Mike Driscoll <kyosohma@gmail.com> wrote:

On Oct 20, 10:13 pm, cappy2112 <cappy2...@gmail.com> wrote: