Skip to content

BF: Decouples the Tk process from its calling process. #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2018

Conversation

Debilski
Copy link
Member

This means Tk will not be automatically closed when the main process exits.

Lacks proper testing on Windows, so do not merge yet. The PR is mostly for reference and as a quick fix for #451 (mostly to allow for playing proper tournaments again. see: #456).

A better solution would explicitly have the supervising process take control of Tk (for example by running the viewer manually before starting the game). For the tournament this could also become an improvement: Having one Tk window for all the games that never closes.

This means Tk will not be automatically closed when the main process
exits.
@codecov-io
Copy link

codecov-io commented Jun 12, 2018

Codecov Report

Merging #474 into master will increase coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #474      +/-   ##
==========================================
+ Coverage   65.85%   65.88%   +0.02%     
==========================================
  Files          30       30              
  Lines        3983     3986       +3     
==========================================
+ Hits         2623     2626       +3     
  Misses       1360     1360
Impacted Files Coverage Δ
pelita/libpelita.py 57.67% <0%> (-0.73%) ⬇️
pelita/player/SmartRandomPlayer.py 83.33% <0%> (+5.55%) ⬆️
pelita/player/SmartEatingPlayer.py 84.61% <0%> (+7.69%) ⬆️

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 e108f41...9ebe60b. Read the comment docs.

@Debilski Debilski merged commit ce4c5f2 into ASPP:master Jul 8, 2018
@Debilski Debilski deleted the feature/fix-autoclosetk branch February 28, 2019 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants