37 |
dbg = config.dbg.shorthand('mp') |
dbg = config.dbg.shorthand('mp') |
38 |
dbg_fail = config.dbg.shorthand('mp.fail') |
dbg_fail = config.dbg.shorthand('mp.fail') |
39 |
|
|
|
|
|
40 |
def link_draw_code(self, target, title, bbox, focus=0, rough_edge=1, error=0): |
def link_draw_code(self, target, title, bbox, focus=0, rough_edge=1, error=0): |
41 |
if error: return 'showlinkerror("'target+'", '+title+', ('+box+'));' |
if error: return 'showlinkerror("'+target+'", '+title+', ('+box+'));' |
42 |
if not focus: return 'showlink("'target+'", '+title+', ('+box+'));' |
if not focus: return 'showlink("'+target+'", '+title+', ('+box+'));' |
43 |
else: |
else: |
44 |
if rough_edge: return 'showfocus("'+target+'", '+title+', ('+box+'));'+"\n"+'drawRoughEdge(('+box+'));' |
if rough_edge: return 'showfocus("'+target+'", '+title+', ('+box+'));'+"\n"+'drawRoughEdge(('+box+'));' |
45 |
else: return 'showfocus("'target+'", '+title+', ('+box+'));' |
else: return 'showfocus("'target+'", '+title+', ('+box+'));' |