now I forgot that text_color is an ATTRIBUTE of a DC
This commit is contained in:
parent
9fbb7be717
commit
c309e4dc0f
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user