Mercurial > cpython-lru_cache-weakref
comparison Mac/scripts/EditPythonPrefs.py @ 27406:caa6df9e0880 legacy-trunk
Use new file dialogs.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Sun, 26 Jan 2003 21:40:00 +0000 |
| parents | f4af27cb2632 |
| children | d19bc3b1813c |
comparison
equal
deleted
inserted
replaced
| 27405:acedecd20126 | 27406:caa6df9e0880 |
|---|---|
| 157 if n == CANCEL_ITEM: | 157 if n == CANCEL_ITEM: |
| 158 return None | 158 return None |
| 159 ## if n == REVERT_ITEM: | 159 ## if n == REVERT_ITEM: |
| 160 ## return [], pythondir | 160 ## return [], pythondir |
| 161 if n == DIR_ITEM: | 161 if n == DIR_ITEM: |
| 162 fss, ok = macfs.GetDirectory('Select python home folder:') | 162 fss = EasyDialogs.AskFolder(message='Select python home folder:', |
| 163 wanted=macfs.FSSpec) | |
| 163 if ok: | 164 if ok: |
| 164 options['dir'] = fss | 165 options['dir'] = fss |
| 165 elif n == HELP_ITEM and Help: | 166 elif n == HELP_ITEM and Help: |
| 166 onoff = Help.HMGetBalloons() | 167 onoff = Help.HMGetBalloons() |
| 167 Help.HMSetBalloons(not onoff) | 168 Help.HMSetBalloons(not onoff) |
