Changeset 236
- Timestamp:
- 06/07/08 16:23:23 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/vanilla/trunk/Lib/vanilla/vanillaSearchBox.py
r206 r236 27 27 nsSearchFieldClass = NSSearchField 28 28 29 def __init__(self, posSize, text="", callback=None, formatter=None, sizeStyle="regular"):29 def __init__(self, posSize, text="", callback=None, formatter=None, placeholder=None, sizeStyle="regular"): 30 30 """ 31 31 *posSize* Tuple of form (left, top, width, height) representing the position and size of the search box. … … 42 42 *formatter* An "NSFormatter": http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFormatter_Class/index.html for controlling the display and input of the text entry. 43 43 44 *placeholder* A placeholder string to be shown when the text entry control is empty. 45 44 46 *sizeStyle* A string representing the desired size style of the search box. The options are: 45 47 … … 55 57 if formatter is not None: 56 58 cell.setFormatter_(formatter) 59 if placeholder: 60 cell.setPlaceholderString_(placeholder) 57 61 58 62 def getNSSearchField(self):
