Skip to content

Commit

Permalink
Made win message less obnoxious
Browse files Browse the repository at this point in the history
  • Loading branch information
sotolf2 authored Oct 17, 2019
1 parent dcbbb08 commit f6c2b2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sudoku.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from tkinter import Tk, Canvas, Frame, Button, filedialog, BOTH, TOP, BOTTOM, LEFT, RIGHT
from tkinter import Tk, Canvas, Frame, Button, filedialog, messagebox, BOTH, TOP, BOTTOM, LEFT, RIGHT
from textwrap import wrap
from enum import Enum

Expand Down Expand Up @@ -484,7 +484,8 @@ def __key_pressed(self, event):
self.__draw_puzzle()
self.__draw_cursor()
if self.game.check_win():
self.__draw_victory()
#self.__draw_victory()
messagebox.showinfo("Completed", "Congratulations, you solved the puzzle!")
elif event.char == " ":
self.__toggle_mode_candidate()
self.__draw_cursor()
Expand Down

0 comments on commit f6c2b2f

Please sign in to comment.