Message360867
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`. |
|
Date |
User |
Action |
Args |
2020-01-28 12:32:21 | cheryl.sabella | set | recipients:
+ cheryl.sabella, terry.reedy |
2020-01-28 12:32:21 | cheryl.sabella | set | messageid: <1580214741.14.0.146044557616.issue39472@roundup.psfhosted.org> |
2020-01-28 12:32:21 | cheryl.sabella | link | issue39472 messages |
2020-01-28 12:32:20 | cheryl.sabella | create | |
|