~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/lib/filebrowsebutton.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#
8
8
# Author:      Mike Fletcher
9
9
#
10
 
# RCS-ID:      $Id: filebrowsebutton.py 59674 2009-03-20 21:00:16Z RD $
 
10
# RCS-ID:      $Id: filebrowsebutton.py 67476 2011-04-13 18:24:22Z RD $
11
11
# Copyright:   (c) 2000 by Total Control Software
12
12
# Licence:     wxWindows license
13
13
#----------------------------------------------------------------------
182
182
        self.callCallback =  save
183
183
 
184
184
 
185
 
    def Enable (self, value=True):
186
 
        """ Convenient enabling/disabling of entire control """
187
 
        self.label.Enable (value)
188
 
        self.textControl.Enable (value)
189
 
        return self.browseButton.Enable (value)
190
 
 
191
 
    def Disable (self,):
192
 
        """ Convenient disabling of entire control """
193
 
        self.Enable(False)
194
 
 
195
185
    def GetLabel( self ):
196
186
        """ Retrieve the label's current text """
197
187
        return self.label.GetLabel()