A control to allow the user to type in a filename or browse with the standard file dialog to select file
wx.lib.filebrowsebutton.DirBrowseButton
, wx.lib.filebrowsebutton.FileBrowseButtonWithHistory
|
|
Create the browse-button control |
|
Setup the graphic representation of the dialog |
|
Create the label/caption |
|
Create the text control |
|
Retrieve the label’s current text |
|
retrieve current value of text control |
|
Going to browse for file… |
|
SetBackgroundColour(colour) -> bool |
|
Set the label’s current text |
|
set current value of text control |
A control to allow the user to type in a filename or browse with the standard file dialog to select file
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
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
Create the browse-button control
Setup the graphic representation of the dialog
Create the label/caption
Create the text control
Retrieve the label’s current text
retrieve current value of text control
Going to browse for file…
SetBackgroundColour(colour) -> bool
Sets the background colour of the window.
Set the label’s current text
set current value of text control