Mercurial > cpython-lru_cache-weakref
comparison Mac/scripts/EditPythonPrefs.py @ 11517:71281ff8c6a2 legacy-trunk
Give a warning if system-wide sys.argv processing is off (because then we
may have missed an applet being dropped on us). This may fix the obscure bug
Tony Ingraldi was experiencing.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 02 Dec 1999 22:52:12 +0000 |
| parents | ebd099889721 |
| children | 3c213e372b22 |
comparison
equal
deleted
inserted
replaced
| 11516:175d7f6804d7 | 11517:71281ff8c6a2 |
|---|---|
| 149 return options | 149 return options |
| 150 | 150 |
| 151 | 151 |
| 152 def edit_preferences(): | 152 def edit_preferences(): |
| 153 handler = pythonprefs.PythonOptions() | 153 handler = pythonprefs.PythonOptions() |
| 154 result = interact(handler.load(), 'System-wide preferences') | 154 options = handler.load() |
| 155 if options['noargs']: | |
| 156 EasyDialogs.Message('Warning: system-wide sys.argv processing is off.\nIf you dropped an applet I have not seen it.') | |
| 157 result = interact(options, 'System-wide preferences') | |
| 155 if result: | 158 if result: |
| 156 handler.save(result) | 159 handler.save(result) |
| 157 | 160 |
| 158 def edit_applet(name): | 161 def edit_applet(name): |
| 159 handler = pythonprefs.AppletOptions(name) | 162 handler = pythonprefs.AppletOptions(name) |
