disco debugging the demo script

This commit is contained in:
Amy Bowersox 2019-12-11 14:08:33 -07:00
parent 79088d4893
commit c283d06c12

View File

@ -7,10 +7,13 @@ LTGRAY = upiwin.rgb(204, 204, 204)
YELLOW = upiwin.rgb(255, 255, 0) YELLOW = upiwin.rgb(255, 255, 0)
# Get the stock bitmaps. # Get the stock bitmaps.
print('GOT HERE 1')
bmp_freehand = upiwin.Bitmap(stock='freehand') bmp_freehand = upiwin.Bitmap(stock='freehand')
print('GOT HERE 1A')
bmp_line = upiwin.Bitmap(stock='line') bmp_line = upiwin.Bitmap(stock='line')
bmp_rect = upiwin.Bitmap(stock='rect') bmp_rect = upiwin.Bitmap(stock='rect')
bmp_fillrect = upiwin.Bitmap(stock='fillrect') bmp_fillrect = upiwin.Bitmap(stock='fillrect')
print('GOT HERE 2')
hdc = upiwin.DevCtxt(type='screen') hdc = upiwin.DevCtxt(type='screen')
hdc_bits = upiwin.DevCtxt(type='memory') hdc_bits = upiwin.DevCtxt(type='memory')
@ -107,8 +110,11 @@ 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])
hdc.rectangle(cmd4_rect[0], cmd4_rect[1], cmd4_rect[2], cmd4_rect[3]) hdc.rectangle(cmd4_rect[0], cmd4_rect[1], cmd4_rect[2], cmd4_rect[3])
print('GOT HERE 3')
hdc_bits.select_object(bmp_freehand) hdc_bits.select_object(bmp_freehand)
print('GOT HERE 4')
hdc.bitblt(cmd1_rect[0] + 6, cmd1_rect[1] + 6, cmd1_rect[0] + 54, cmd1_rect[1] + 54, hdc_bits, 0, 0, 0) hdc.bitblt(cmd1_rect[0] + 6, cmd1_rect[1] + 6, cmd1_rect[0] + 54, cmd1_rect[1] + 54, hdc_bits, 0, 0, 0)
print('GOT HERE 5')
# Main message loop # Main message loop
msg = {} msg = {}