'Return (width, height, x, y)'

def get_geometry(self):

    geom = self.top.wm_geometry()
    m = re.match('(\\d+)x(\\d+)\\+(-?\\d+)\\+(-?\\d+)', geom)
    tuple = map(int, m.groups())
    return tuple
