-
Notifications
You must be signed in to change notification settings - Fork 1
SudokuGUI
Raj Srikar edited this page Jun 24, 2021
·
1 revision
- Will be called on clicking the 'Clear' Button.
- Clears all the Sudoku Grid Entries
- Will be called on checking the 'Show Time' Checkbutton.
- Enables and disables the "lbl_time" Label
- Will be called on clicking the 'From File' Button.
- Invokes askopenfilename dialog and imports the Sudoku from the selected text file and fills up all the Entries.
- Called in the KeyPress() function
- Selects the Entry below on pressing the Down Arrow Key
- Called in the KeyPress() function
- Selects the next Entry on pressing the Right Arrow Key
- Called in the KeyPress() function
- Selects the previous Entry on pressing the Left Arrow Key
- Called in the KeyPress() function
- Selects the upper Entry on pressing the Up Arrow Key
- Will be called on checking the 'Highlight Solved Digits' Checkbutton and on selecting an option in the Color Combobox
- Highlights all the solved digits in the Sudoku, by changing their color to the selected color in the Color Combobox
- Bounded to all the Entries in the Sudoku Grid
- Detects the keyPress events while any of the Entries is selected. Allows characters only if it is a number or '-' or a space. Also used to navigate through the Entries by detecting the arrow key events
- Will be called on clicking the 'SOLVE' Button.
- Extracts all the digits given in the Sudoku Grid Entries and forms a 9x9 list. Then passes this list as an argument while calling the "solveSudoku()" function. After solving, all the entries will be refilled again with solved digits.