This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients cheryl.sabella, terry.reedy
Date 2020-01-28.12:32:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580214741.14.0.146044557616.issue39472@roundup.psfhosted.org>
In-reply-to
Content
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 appears in the terminal 
   Warning: config.py - IdleConf.GetOption -
   invalid 'int' value for configuration option 'auto-squeeze-min-lines'
   from section 'PyShell': ''
- Close out of IDLE.
- Start IDLE again - the warning reappears, but on the General tab, it shows the original value.

The issue here is that the custom config-main.cfg is being written to (and then read back in) with the blank.

I picked the auto-squeezer because it has validation on it - `validatecommand=self.digits_only`.
History
Date User Action Args
2020-01-28 12:32:21cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy
2020-01-28 12:32:21cheryl.sabellasetmessageid: <1580214741.14.0.146044557616.issue39472@roundup.psfhosted.org>
2020-01-28 12:32:21cheryl.sabellalinkissue39472 messages
2020-01-28 12:32:20cheryl.sabellacreate