Week 3 - Canvas, drawing, timers discussion
Week 3 - Canvas, drawing, timers discussion#
Create a canvas in Python
Learn how to draw on the canvas
Create a digital stopwatch
Week 3a - Drawing Canvas#
Canvas and Drawing#
How are the small components of a computer screen called that can have a specific color?
What is a frame buffer?
What is a refresh rate?
Typically GUI applications call a function to refresh the image shown on your monitor. How is this function called?
What is the coordinate of the following pixel?
. 0 1 2 3 4 0 1 X 2 3 4
The input handler function takes the value which was input as an argument. What does the draw handler function take as an argument?
How can you combine strings?
How can you combine strings and variables?
What are slices?
What does a negative number mean in the slicing notation?
How many characters does
Joe Warren mentions code folding in a sentence. What is it good for?
What is the basic idea to draw the output of a function on the canvas?
Week 3b - Timers#
What are timers good for? Give an example.
In the timer example code, Scott says that we do not update our canvas in the timer handler. Why?
What would happen if we would put the code in
tick()and vice versa?