equal
deleted
inserted
replaced
37 |
37 |
38 |
38 |
39 THUMB_SIZE_RATIO = 1. / 8. |
39 THUMB_SIZE_RATIO = 1. / 8. |
40 |
40 |
41 |
41 |
42 def ArrowPoints(direction, width, height, xoffset, yoffset): |
42 def ArrowPoints(*args): |
|
43 direction, width, height, xoffset, yoffset = map(lambda x:x if type(x)==int else int(x), args) |
43 if direction == wx.TOP: |
44 if direction == wx.TOP: |
44 return [wx.Point(xoffset + 1, yoffset + height - 2), |
45 return [wx.Point(xoffset + 1, yoffset + height - 2), |
45 wx.Point(xoffset + width // 2, yoffset + 1), |
46 wx.Point(xoffset + width // 2, yoffset + 1), |
46 wx.Point(xoffset + width - 1, yoffset + height - 2)] |
47 wx.Point(xoffset + width - 1, yoffset + height - 2)] |
47 else: |
48 else: |