def moveSizeToFit(self, left, top):
    self.clear()
    self.addItem(u'some menu', None)
    self.addItem(u'cut', self.host.textBuffer.editCut)
    self.addItem(u'paste', self.host.textBuffer.editPaste)
    longest = 0
    for i in self.lines:
        if (len(i) > longest):
            longest = len(i)
    self.reshape(left, top, len(self.lines), (longest + 2))
def moveSizeToFit(self, left, top):
    self.clear()
    self.addItem(u'some menu', None)
    self.addItem(u'cut', self.host.textBuffer.editCut)
    self.addItem(u'paste', self.host.textBuffer.editPaste)
    longest = 0
    for i in self.lines:
        if (len(i) > longest):
            longest = len(i)
    self.reshape(left, top, len(self.lines), (longest + 2))