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`.
|