Changeset 335

Show
Ignore:
Timestamp:
06/16/04 12:49:30 (5 years ago)
Author:
ed
Message:

Added new 'password' parameter to the init() method. If this is passed a
value of True, the textbox will be a password textbox, with characters
appearing as asterisks instead of normal characters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ui/uiwx/classes/dTextBox.py

    r293 r335  
    77    """ Allows editing one line of string or unicode data. 
    88    """ 
    9     def __init__(self, parent, id=-1, name="dTextBox", style=0, *args, **kwargs): 
     9    def __init__(self, parent, id=-1, name="dTextBox", password=False,  
     10                style=0, *args, **kwargs): 
    1011 
    1112        self._baseClass = dTextBox 
     13         
     14        # If this is a password textbox, update the style parameter 
     15        if password: 
     16            style = style | wx.TE_PASSWORD 
    1217 
    1318        pre = wx.PreTextCtrl()