parameters: (argv)
docstring: main program - draw and display a test image
docstring_summary: main program - draw and display a test image
docstring_tokens: main program - draw and display a test image
function: def main(argv):
      """main program - draw and display a test image"""
  
      try:
          start = int(argv[0])
      except ValueError:
          sys.exit('start is not an integer: {s:s}'.format(s=argv[0]))
      if start < 0 or start > MAX_START:
          sys.exit('object count is out of range [0..0x{m:04x}: 0x{s:04x}'.format(m=MAX_START, s=start))
  
  
      epd = EPD()
  
      print('panel = {p:s} {w:d} x {h:d}  version={v:s} COG={g:d} FILM={f:d}'.format(p=epd.panel, w=epd.width, h=epd.height, v=epd.version, g=epd.cog, f=epd.film))
  
      epd.clear()
  
      demo(epd, start)
function_tokens: def main ( argv ) : try : start = int ( argv [ 0 ] ) except ValueError : sys . exit ( 'start is not an integer: {s:s}' . format ( s = argv [ 0 ] ) ) if start < 0 or start > MAX_START : sys . exit ( 'object count is out of range [0..0x{m:04x}: 0x{s:04x}' . format ( m = MAX_START , s = start ) ) epd = EPD ( ) print ( 'panel = {p:s} {w:d} x {h:d}  version={v:s} COG={g:d} FILM={f:d}' . format ( p = epd . panel , w = epd . width , h = epd . height , v = epd . version , g = epd . cog , f = epd . film ) ) epd . clear ( ) demo ( epd , start )