Rev 558 | Rev 560 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 558 | Rev 559 | ||
---|---|---|---|
Line 185... | Line 185... | ||
185 | args.append(val) |
185 | args.append(val) |
186 | 186 | ||
187 | kw = {} |
187 | kw = {} |
188 | if defopt: |
188 | if defopt: |
189 | kw['default-item'] = choices[defopt][0] |
189 | 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', |
|
191 | '--menu',text,height,width, |
192 | '--menu',text,height,width, |
192 | str(len(choices)),*args,**kw) |
193 | str(len(choices)),*args,**kw) |
193 | if res == 1: |
194 | if res == 3: |
194 | return button[0] |
195 | return button[0] |
- | 196 | if res == 1: # Cancel |
|
- | 197 | sys.exit(1) |
|
195 | elif res: |
198 | elif res: |
196 | print data |
199 | print data |
197 | raise EOFError |
200 | raise EOFError |
198 | return data |
201 | return data |
199 | 202 |