A control to allow the user to type in a filename or browse with the standard file dialog to select file
wx.lib.filebrowsebutton.FileBrowseButton
|
|
Going to browse for file… |
DirBrowseButton
(FileBrowseButton)¶A control to allow the user to type in a filename or browse with the standard file dialog to select file
__init__
(self, parent, id = -1, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.TAB_TRAVERSAL, labelText = 'Select a directory:', buttonText = 'Browse', toolTip = 'Type directory name or browse to select', dialogTitle = '', startDirectory = '.', initialValue = '', changeCallback = None, dialogClass = wx.DirDialog, newDirectory = False, name = 'dirBrowseButton')¶labelText – Text for label to left of text field
buttonText – Text for button which launches the file dialog
toolTip – Help text
dialogTitle – Title used in file dialog
startDirectory – Default directory for file dialog startup
initialValue – Value initially present in the text field
fileMask – File mask (glob pattern, such as .) to use in file dialog
fileMode – wx.FD_OPEN or wx.FD_SAVE, indicates type of file dialog to use
changeCallback – Optional callback called for all changes in value of the control
labelWidth – Width of the label
OnBrowse
(self, ev = None)¶Going to browse for file…