A different implementation of DirDialog
which allows multiple
folders to be selected at once.
__init__ |
Default class constructor. |
BindEvents |
Binds the events to specific methods. |
CreateButtons |
Creates the OK , Cancel and Make New Folder bitmap buttons. |
GetPaths |
Returns the folders selected by the user, or the default path. |
LayoutItems |
Layout the widgets using sizers. |
OnCancel |
Handles the wx.EVT_BUTTON event for the dialog. |
OnClose |
Handles the wx.EVT_CLOSE event for the dialog. |
OnKeyUp |
Handles the wx.EVT_CHAR_HOOK event for the dialog. |
OnOk |
Handles the wx.EVT_BUTTON event for the dialog. |
OnSelChanged |
Handles the wx.EVT_TREE_SEL_CHANGED event for the tree control associated |
RecurseTopDir |
Recurse a directory tree to include the parent-folder. |
SetProperties |
Sets few properties for the dialog. |
SetupDirCtrl |
Setup the internal GenericDirCtrl (icons, labels, etc...). |
MultiDirDialog
(wx.Dialog)¶A different implementation of DirDialog
which allows multiple
folders to be selected at once.
__init__
(self, parent, message=_("Choose one or more folders:"), title=_("Browse For Folders"), defaultPath="", style=wx.DD_DEFAULT_STYLE, agwStyle=DD_MULTIPLE, pos=wx.DefaultPosition, size=wx.DefaultSize, name="multidirdialog")¶Default class constructor.
Parameters: |
|
---|
BindEvents
(self)¶Binds the events to specific methods.
CreateButtons
(self)¶Creates the OK
, Cancel
and Make New Folder
bitmap buttons.
GetPaths
(self)¶Returns the folders selected by the user, or the default path.
LayoutItems
(self, message)¶Layout the widgets using sizers.
OnCancel
(self, event)¶Handles the wx.EVT_BUTTON
event for the dialog.
Parameters: | event – a CommandEvent event to be processed. |
---|
Note
This method handles the Cancel
button press.
OnClose
(self, event)¶Handles the wx.EVT_CLOSE
event for the dialog.
Parameters: | event – a CloseEvent event to be processed. |
---|
OnKeyUp
(self, event)¶Handles the wx.EVT_CHAR_HOOK
event for the dialog.
Parameters: | event – a KeyEvent event to be processed. |
---|
OnOk
(self, event)¶Handles the wx.EVT_BUTTON
event for the dialog.
Parameters: | event – a CommandEvent event to be processed. |
---|
Note
This method handles the OK
button press.
OnSelChanged
(self, event)¶Handles the wx.EVT_TREE_SEL_CHANGED
event for the tree control associated
with MultiDirDialog
.
Parameters: | event – a TreeEvent event to be processed. |
---|
RecurseTopDir
(self, treeCtrl, item, itemText)¶Recurse a directory tree to include the parent-folder.
Parameters: |
|
---|
SetProperties
(self, title)¶Sets few properties for the dialog.
Parameters: | title – the dialog title. |
---|
SetupDirCtrl
(self, defaultPath)¶Setup the internal GenericDirCtrl
(icons, labels, etc...).
Parameters: | defaultPath – the default path for MultiDirDialog , can be an
empty string. |
---|