(drawcontext, xy, outline=None, width=0, partial=None)
| 214 | |
| 215 | |
| 216 | def drawrect(drawcontext, xy, outline=None, width=0, partial=None): |
| 217 | (x1, y1), (x2, y2) = xy |
| 218 | if partial is None: |
| 219 | points = (x1, y1), (x2, y1), (x2, y2), (x1, y2), (x1, y1) |
| 220 | drawcontext.line(points, fill=outline, width=width) |
| 221 | else: |
| 222 | drawcontext.line([(x1, y1), (x1, y1 + partial)], fill=outline, width=width) |
| 223 | drawcontext.line([(x1 + partial, y1), (x1, y1)], fill=outline, width=width) |
| 224 | |
| 225 | drawcontext.line([(x2, y1), (x2, y1 + partial)], fill=outline, width=width) |
| 226 | drawcontext.line([(x2, y1), (x2 - partial, y1)], fill=outline, width=width) |
| 227 | |
| 228 | drawcontext.line([(x1, y2), (x1 + partial, y2)], fill=outline, width=width) |
| 229 | drawcontext.line([(x1, y2), (x1, y2 - partial)], fill=outline, width=width) |
| 230 | |
| 231 | drawcontext.line([(x2 - partial, y2), (x2, y2)], fill=outline, width=width) |
| 232 | drawcontext.line([(x2, y2), (x2, y2 - partial)], fill=outline, width=width) |
| 233 | |
| 234 | |
| 235 | def get_everything_under(root_dir, pattern='*', only_dirs=False, only_files=False): |
nothing calls this directly
no outgoing calls
no test coverage detected