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])