now I forgot that text_color is an ATTRIBUTE of a DC

This commit is contained in:
Amy Bowersox 2019-12-11 12:13:35 -07:00
parent 9fbb7be717
commit c309e4dc0f

View File

@ -28,7 +28,7 @@ def point_in_rect(rect, x, y):
# --- Initialize and start message loop --- # --- Initialize and start message loop ---
# Draw the basic layout. # Draw the basic layout.
hdc.set_text_color(LTGRAY) hdc.text_color = LTGRAY
hdc.rectangle(cmd1_rect[0], cmd1_rect[1], cmd1_rect[2], cmd1_rect[3]) hdc.rectangle(cmd1_rect[0], cmd1_rect[1], cmd1_rect[2], cmd1_rect[3])
hdc.rectangle(cmd2_rect[0], cmd2_rect[1], cmd2_rect[2], cmd2_rect[3]) hdc.rectangle(cmd2_rect[0], cmd2_rect[1], cmd2_rect[2], cmd2_rect[3])
hdc.rectangle(cmd3_rect[0], cmd3_rect[1], cmd3_rect[2], cmd3_rect[3]) hdc.rectangle(cmd3_rect[0], cmd3_rect[1], cmd3_rect[2], cmd3_rect[3])