Changeset 45ab770 in mainline


Ignore:
Timestamp:
2005-12-07T14:53:11Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54257ba
Parents:
839470f
Message:

Added cancel button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r839470f r45ab770  
    188188        if defopt:
    189189            kw['default-item'] = choices[defopt][0]
    190         res,data = self.calldlg('--cancel-label',button[1],
     190        res,data = self.calldlg('--extra-label',button[1],
     191                                '--extra-button',
    191192                                '--menu',text,height,width,
    192193                                str(len(choices)),*args,**kw)
    193         if res == 1:
     194        if res == 3:
    194195            return button[0]
     196        if res == 1: # Cancel
     197            sys.exit(1)
    195198        elif res:
    196199            print data
Note: See TracChangeset for help on using the changeset viewer.