~ubuntu-branches/ubuntu/utopic/taskcoach/utopic

« back to all changes in this revision

Viewing changes to taskcoachlib/widgets/searchctrl.py

  • Committer: Package Import Robot
  • Author(s): Nicolas Boulenguez
  • Date: 2013-11-06 02:07:58 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131106020758-w57bwyuwb33j0v3q
Tags: 1.3.33-1
* New upstream release.
* Standards-Version: 3.9.5 without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        self.__searchDescription = kwargs.pop('searchDescription', False)
30
30
        self.__regularExpression = kwargs.pop('regularExpression', False)
31
31
        self.__bitmapSize = kwargs.pop('size', (16, 16))
 
32
        value = kwargs.pop('value', u'')
32
33
        super(SearchCtrl, self).__init__(*args, **kwargs)
33
34
        self.SetSearchMenuBitmap(self.getBitmap('magnifier_glass_dropdown_icon'))
34
35
        self.SetSearchBitmap(self.getBitmap('magnifier_glass_icon'))
39
40
        self.__tooltip = tooltip.SimpleToolTip(self)
40
41
        self.createMenu()
41
42
        self.bindEventHandlers()
 
43
        self.SetValue(value)
42
44
        
43
45
    def GetMainWindow(self):
44
46
        return self