From c309e4dc0f3b755cc91798632e0d2d9275309c6e Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Wed, 11 Dec 2019 12:13:35 -0700 Subject: [PATCH] now I forgot that text_color is an ATTRIBUTE of a DC --- scripts/demo1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/demo1.py b/scripts/demo1.py index bd59231..022eb2a 100755 --- a/scripts/demo1.py +++ b/scripts/demo1.py @@ -28,7 +28,7 @@ def point_in_rect(rect, x, y): # --- Initialize and start message loop --- # 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(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])