Cheryl Sabella <cheryl.sabe...@gmail.com> 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 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`.

----------
nosy: +cheryl.sabella

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39472>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to