[issue39472] IDLE: improve handling of int entry in settings dialog

2020-01-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: With keeping it a StringVar, there is an issue where it writes a blank (ie, bad data) to the config file. Steps to reproduce: - Go into config dialog and click 'General' tab. - Delete value from 'Auto squeeze min line' - Click apply or OK. A warning message

[issue39472] IDLE: improve handling of int entry in settings dialog

2020-01-27 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #31414, about int entry fields. It claims: Note: a deeper problem is attaching a tracer that get called with each keystroke. Using a StringVar avoids the error when the entry is blanked, but currently allows non-ints to be saved. A better s