Package gui :: Module filedialog :: Class RelaxDirDialog
[hide private]
[frames] | no frames]

Class RelaxDirDialog

source code


relax specific replacement directory dialog for selecting directories.

Instance Methods [hide private]
 
__init__(self, parent, field=None, message=wx.DirSelectorPromptStr, defaultPath=wx.EmptyString, style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON, pos=wx.DefaultPosition, size=wx.DefaultSize, name=wx.DirDialogNameStr)
Setup the class and store the field.
source code
str
get_path(self)
Return the selected path.
source code
 
select_event(self, event)
The path selector GUI element.
source code
Method Details [hide private]

__init__(self, parent, field=None, message=wx.DirSelectorPromptStr, defaultPath=wx.EmptyString, style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON, pos=wx.DefaultPosition, size=wx.DefaultSize, name=wx.DirDialogNameStr)
(Constructor)

source code 

Setup the class and store the field.

Parameters:
  • parent (Window) - The parent wx window object.
  • field (wx object or None) - The field to update with the file selection.
  • message (String) - The path selector prompt string.
  • defaultPath (String) - The default directory to open in.
  • style (long) - The dialog style.
  • pos (Point) - The window position.
  • size (Size) - The default window size.
  • name (String) - The title for the dialog.

get_path(self)

source code 

Return the selected path.

Returns: str
The name of the selected path.

select_event(self, event)

source code 

The path selector GUI element.

Parameters:
  • event (wx event) - The wx event.