phoenix_title wx.lib.filebrowsebutton.DirBrowseButton

A control to allow the user to type in a filename or browse with the standard file dialog to select file


class_hierarchy Class Hierarchy

Inheritance diagram for class DirBrowseButton:

super_classes Known Superclasses

wx.lib.filebrowsebutton.FileBrowseButton


method_summary Methods Summary

__init__

param labelText:

Text for label to left of text field

OnBrowse

Going to browse for file…


api Class API

class DirBrowseButton(FileBrowseButton)

A control to allow the user to type in a filename or browse with the standard file dialog to select file


Methods

__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')
Parameters:
  • 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…