Redrawing deck after deal
Expected behaviour
After the user clicks on the deck stack, 3 cards should move from the deck to the waste. The new top card of the deck should be drawn. Note: currently face-up and face-down states are built-in to the cards, but not reflected by their image
Actual behaviour
After the user clicks on the deck stack, 3 cards do move from the deck to the waste. The new top card of the deck is NOT redrawn. Instead a grey rectangle appears where the card should be.
Steps to reproduce
Run the game. Click on the deck (represented by the cards (only top visible) in the top left corner area. Cards will be dealt, grey rectangle left behind.
Supsected cause or origin
The canvas, or cards (labels) need to be updated or redrawn or otherwise rendered onto the canvas. Attempting an update() or update_idletasks() so far has not solved the issue (and should not be necessary) and so is not in the code
- Code to deal cards is in pysollib/gamelayout.Klondike.deal(...)
- Event handling is in pysollib/control/gameManager.py
- Working code for moving cards between stacks is in pysollib/stack.py