j4321 / tkcalendar

Calendar widget for Tkinter
https://pypi.python.org/pypi/tkcalendar
GNU General Public License v3.0
97 stars 33 forks source link

Fix bug in DateEntry when passing style as argument #33

Closed j4321 closed 5 years ago

j4321 commented 5 years ago

DateEntry(.., style='my.DateEntry') triggered an exception because the DateEntry layout was not defined yet. This issue is fixed by delaying the configuration of the style.

codecov[bot] commented 5 years ago

Codecov Report

Merging #33 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   95.41%   95.42%   +<.01%     
==========================================
  Files           9        9              
  Lines        1572     1573       +1     
==========================================
+ Hits         1500     1501       +1     
  Misses         72       72
Impacted Files Coverage Δ
tests/test_dateentry.py 100% <ø> (ø) :arrow_up:
tkcalendar/dateentry.py 94.58% <100%> (+0.02%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 731dd7a...0505d4c. Read the comment docs.