X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/694759cfeb701f8b96d720e72f760cc21e2e6b00..294d195c3cfd9b39b8e1855e9a89dba86bef0082:/utils/wxPython/lib/filebrowsebutton.py diff --git a/utils/wxPython/lib/filebrowsebutton.py b/utils/wxPython/lib/filebrowsebutton.py index 22e0069311..719287c246 100644 --- a/utils/wxPython/lib/filebrowsebutton.py +++ b/utils/wxPython/lib/filebrowsebutton.py @@ -107,6 +107,21 @@ class FileBrowseButton(wxPanel): ''' Convenient setting of text control value ''' return self.textControl.SetValue (value) + def Enable (self, value): + ''' Convenient enabling/disabling of entire control ''' + self.label.Enable (value) + self.textControl.Enable (value) + return self.browseButton.Enable (value) + + def GetLabel( self ): + ''' Retrieve the label's current text ''' + return self.label.GetLabel() + + def SetLabel( self, value ): + ''' Set the label's current text ''' + return self.label.SetLabel( value ) + + #----------------------------------------------------------------------