mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Added initialValue argument to DirBrowseButton constructor and improved documentation
This commit is contained in:
@@ -52,6 +52,7 @@ class FileBrowseButton(wx.Panel):
|
|||||||
:param toolTip: Help text
|
:param toolTip: Help text
|
||||||
:param dialogTitle: Title used in file dialog
|
:param dialogTitle: Title used in file dialog
|
||||||
:param startDirectory: Default directory for file dialog startup
|
: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 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 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
|
: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',
|
toolTip = 'Type directory name or browse to select',
|
||||||
dialogTitle = '',
|
dialogTitle = '',
|
||||||
startDirectory = '.',
|
startDirectory = '.',
|
||||||
|
initialValue = '',
|
||||||
changeCallback = None,
|
changeCallback = None,
|
||||||
dialogClass = wx.DirDialog,
|
dialogClass = wx.DirDialog,
|
||||||
newDirectory = False,
|
newDirectory = False,
|
||||||
name = 'dirBrowseButton'):
|
name = 'dirBrowseButton'):
|
||||||
FileBrowseButton.__init__(self, parent, id, pos, size, style,
|
FileBrowseButton.__init__(self, parent, id, pos, size, style,
|
||||||
labelText, buttonText, toolTip,
|
labelText, buttonText, toolTip,
|
||||||
dialogTitle, startDirectory,
|
dialogTitle, startDirectory, initialValue,
|
||||||
changeCallback = changeCallback,
|
changeCallback = changeCallback,
|
||||||
name = name)
|
name = name)
|
||||||
self.dialogClass = dialogClass
|
self.dialogClass = dialogClass
|
||||||
|
|||||||
Reference in New Issue
Block a user