def setsize_build(self, start, end): """ Standard sizing mechanism for the build buildtype. Returns keys, pos: keys needed to make the currently-designating area the correct size pos is where the cursor ends up after sizing the area """ # move cursor halfway to end from start mid = midpoint(start, end) keys = self.move(start, mid) # resize construction area = Area(start, end) keys += ['{widen}'] * (area.width() - 1) keys += ['{heighten}'] * (area.height() - 1) return keys, mid