Question: Write a function called compute_coordinates that takes the following parameters: in python window word of type str location of type list that holds the coordinates
Write a function called compute_coordinates that takes the following parameters: in python
-
window
-
word of type str
-
location of type list that holds the coordinates of the top left corner of a text box
The function modifies the given list such that the x coordinate is incremented by the width of the word and the y coordinate is incremented by the font height.
You may assume the font size and font color of the window has already been set before the call to compute_coordinates.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
