Non-modal file palette

Hello,

May be someone has got a solution for this.

Let say I have a list of items in a listCtrl and to each item I'd like to give a specific file, for example in the second column of the control. With a wx.FileDialog, I need to select the item, open the dialog, select the file, close the dialog (or double click) and do it again for the next item. Is there a way to keep the dialog open, select the next item in the parent window and have a kind of 'Apply' button in the dialog ? Or is there a way to drag and drop the file from the dialog into the listCtrl at the selected row/column ?

Thanks.

Raphael

Hi,

···

On Mon, Mar 8, 2010 at 11:13 AM, Raphael Mayoraz <maygeo@netplus.ch> wrote:

Hello,

May be someone has got a solution for this.

Let say I have a list of items in a listCtrl and to each item I'd like to
give a specific file, for example in the second column of the control. With
a wx.FileDialog, I need to select the item, open the dialog, select the
file, close the dialog (or double click) and do it again for the next item.
Is there a way to keep the dialog open, select the next item in the parent
window and have a kind of 'Apply' button in the dialog ? Or is there a way
to drag and drop the file from the dialog into the listCtrl at the selected
row/column ?

No, but you can just pass the wx.FD_MULTIPLE style flag to the dialog
and select all the files that you want at the same time. Then just use
GetFilenames() to get the list of selected files.

Cody

Cody Precord wrote:

Hi,

Hello,

May be someone has got a solution for this.

Let say I have a list of items in a listCtrl and to each item I'd like to
give a specific file, for example in the second column of the control. With
a wx.FileDialog, I need to select the item, open the dialog, select the
file, close the dialog (or double click) and do it again for the next item.
Is there a way to keep the dialog open, select the next item in the parent
window and have a kind of 'Apply' button in the dialog ? Or is there a way
to drag and drop the file from the dialog into the listCtrl at the selected
row/column ?
    
No, but you can just pass the wx.FD_MULTIPLE style flag to the dialog
and select all the files that you want at the same time. Then just use
GetFilenames() to get the list of selected files.

Cody

Thanks for the tip, I'll try that, see how it goes.

Raphael

···

On Mon, Mar 8, 2010 at 11:13 AM, Raphael Mayoraz <maygeo@netplus.ch> wrote: