A different implementation of DirDialog
which allows multiple
folders to be selected at once.
Default class constructor. |
|
Binds the events to specific methods. |
|
Creates the |
|
Returns the folders selected by the user, or the default path. |
|
Layout the widgets using sizers. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Sets few properties for the dialog. |
|
Setup the internal |
A different implementation of DirDialog
which allows multiple
folders to be selected at once.
Default class constructor.
parent – the dialog parent widget;
message – the message to show on the dialog;
title – the dialog title;
defaultPath – the default path, or the empty string;
style – the underlying Dialog
window style;
agwStyle –
the AGW-specific dialog style; this can be a combination of the following bits:
Window Styles |
Hex Value |
Description |
---|---|---|
|
0x080 |
Enable/disable the “Make new folder” button |
|
0x200 |
The dialog will allow the user to choose only an existing folder. When this style is not given, a “Create new directory” button is added to the dialog (on Windows) or some other way is provided to the user to type the name of a new folder. |
|
0x400 |
Allows the selection of multiple folders. |
pos – the dialog position;
size – the dialog size;
name – the dialog name.
Binds the events to specific methods.
Creates the OK
, Cancel
and Make New Folder
bitmap buttons.
Returns the folders selected by the user, or the default path.
Layout the widgets using sizers.
Handles the wx.EVT_BUTTON
event for the dialog.
event – a CommandEvent
event to be processed.
Note
This method handles the Cancel
button press.
Handles the wx.EVT_CLOSE
event for the dialog.
event – a CloseEvent
event to be processed.
Handles the wx.EVT_CHAR_HOOK
event for the dialog.
event – a KeyEvent
event to be processed.
Handles the wx.EVT_BUTTON
event for the dialog.
event – a CommandEvent
event to be processed.
Note
This method handles the OK
button press.
Handles the wx.EVT_TREE_SEL_CHANGED
event for the tree control associated
with MultiDirDialog
.
event – a TreeEvent
event to be processed.
Sets few properties for the dialog.
title – the dialog title.
Setup the internal GenericDirCtrl
(icons, labels, etc…).
defaultPath – the default path for MultiDirDialog
, can be an
empty string.