(self)
return box[0] + 2, box[1] + box[3]
Choose the position of the call-tip.
Choose the position of the call-tip.
Choose the position of the call - tip .
def get_position(self):
        """Choose the position of the call-tip."""
        curline = int(self.anchor_widget.index("insert").split('.')[0])
        if curline == self.parenline:
            anchor_index = (self.parenline, self.parencol)
        else:
            anchor_index = (curline, 0)
        box = self.anchor_widget.bbox("%d.%d" % anchor_index)
        if not box:
            box = list(self.anchor_widget.bbox("insert"))
            # align to left of window
            box[0] = 0
            box[2] = 0
        return box[0] + 2, box[1] + box[3]
def get_position ( self ) : curline = int ( self . anchor_widget . index ( "insert" ) . split ( '.' ) [ 0 ] ) if curline == self . parenline : anchor_index = ( self . parenline , self . parencol ) else : anchor_index = ( curline , 0 ) box = self . anchor_widget . bbox ( "%d.%d" % anchor_index ) if not box : box = list ( self . anchor_widget . bbox ( "insert" ) ) # align to left of window box [ 0 ] = 0 box [ 2 ] = 0 return box [ 0 ] + 2 , box [ 1 ] + box [ 3 ]