Skip to content

Finished User Interface Setup section in Part 1: Sudoku Board Setup#81

Open
mathonsunday wants to merge 3 commits intoeconchick:masterfrom
mathonsunday:master
Open

Finished User Interface Setup section in Part 1: Sudoku Board Setup#81
mathonsunday wants to merge 3 commits intoeconchick:masterfrom
mathonsunday:master

Conversation

@mathonsunday
Copy link

In the post you have the line "We'll now define a class for our UI, SudokuUI(Frame), and go through each function." So I went through each function in the class.

Note: I will be working on more of the tutorial. I am just sending PRs as I finish logical chunks.

@merwok
Copy link
Contributor

merwok commented Jan 19, 2014

Thank you for doing this!

@econchick
Copy link
Owner

@mathonsunday - just wanted to let you know that I haven't forgotten about this! Hopefully I can set time to review next week. Thank you so much!

The last two lines use the concepts of bindings and events. We specify an event like `"<Button-1>"` that always triggers a certain function.`<Button-1>` corresponds to clicking on the mouse. Functions called in this way are commonly known as callbacks. You can learn more about bindings and events by reading the [documentation](http://docs.python.org/2/library/tkinter.html#bindings-and-events).

```python
def __draw_grid(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This first line is missing four spaces, like other code snippets in this file (the first and last one are good).

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.

3 participants

Comments