Added initialValue argument to DirBrowseButton constructor and improved documentation

This commit is contained in:
Ailothaen
2023-06-29 21:56:30 +02:00
parent c4d2ceed55
commit ee185422c6

View File

@@ -52,6 +52,7 @@ class FileBrowseButton(wx.Panel):
:param toolTip: Help text
:param dialogTitle: Title used in file dialog
:param startDirectory: Default directory for file dialog startup
:param initialValue: Value initially present in the text field
:param fileMask: File mask (glob pattern, such as *.*) to use in file dialog
:param fileMode: wx.FD_OPEN or wx.FD_SAVE, indicates type of file dialog to use
:param changeCallback: Optional callback called for all changes in value of the control
@@ -335,13 +336,14 @@ class DirBrowseButton(FileBrowseButton):
toolTip = 'Type directory name or browse to select',
dialogTitle = '',
startDirectory = '.',
initialValue = '',
changeCallback = None,
dialogClass = wx.DirDialog,
newDirectory = False,
name = 'dirBrowseButton'):
FileBrowseButton.__init__(self, parent, id, pos, size, style,
labelText, buttonText, toolTip,
dialogTitle, startDirectory,
dialogTitle, startDirectory, initialValue,
changeCallback = changeCallback,
name = name)
self.dialogClass = dialogClass