Closed drepekh closed 6 years ago
Could you please provide a description of what you have done, especially what was wrong in the behavior in readonly mode?
There is a couple of places in the code, where you try to insert text in the entry, but only one of them (function _select) is wrapped with check for 'readonly' state (set to normal, insert, than set back to readonly). This leads to the following problems: 1) Entry will be empty if you try to init it with state='readonly' (entry's init calls insert()), and any following attempt to open drop down calendar will cause an error, because _validate_date() should have inserted text in the entry, but it did not, and drop_down() calls strptime on an empty string. 2) set_date doesn't work because, again, it calls insert without checking readonly state. And so on. I just wrote function _set_text based on your code from _select, and replaced all insert calls with it.
Codecov Report
91.17% <100%> (ø)
Continue to review full report at Codecov.