controls/LogViewer.py
changeset 3816 032bf4f225d0
parent 3768 c032fff8af32
equal deleted inserted replaced
3815:56f08ab3a491 3816:032bf4f225d0
    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: