Changeset 4219

Show
Ignore:
Timestamp:
08/02/10 19:09:33 (1 month ago)
Author:
alo
Message:

Clarifies test1.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CTK/trunk/tests/test1.py

    r4213 r4219  
    11import CTK 
     2import time 
    23 
    34def error(x): 
     
    1718 
    1819def apply(): 
     20    if CTK.post['server!tri']: 
     21        time.sleep(2) 
     22 
    1923    return {'ret': "ok"} 
    2024 
     
    2226    def __init__ (self): 
    2327        a = CTK.PropsAuto ('/apply') 
    24         a.Add ('Name',    CTK.TextField({'name': "server!uno"}),    'Example 1') 
    25         a.Add ('Surname', CTK.TextField({'name': "server!dos"}),    'Lalala') 
    26         a.Add ('Nick',    CTK.TextField({'name': "server!tri"}),    'Oh uh ah!') 
    27         a.Add ('Active',  CTK.Checkbox ({'name': "server!active", 'checked':1}), 'Nuevo') 
     28        a.Add ('To upcase',   CTK.TextField({'name': "server!uno"}),  'Converts the content of the field to upcase') 
     29        a.Add ('Shows error', CTK.TextField({'name': "server!dos"}),  'It shows an error, it does not matter what you write') 
     30        a.Add ('Delay 2secs', CTK.TextField({'name': "server!tri"}),  'It delays response for 2 seconds, so the submitting message is shown') 
     31        a.Add ('Active',      CTK.Checkbox ({'name': "server!active", 'checked':1}), 'It\'s just a plain checkbox. Nothing to see here') 
    2832 
    2933        b = CTK.PropsAuto ('/apply')