def expose(self, mouse):
        w = self.getGUI().window
        w, h = w.width, w.height
        self.center = map(int, mouse)
        if self.x < 0: self.x = 0
        if self.y < 0: self.y = 0
        if self.x + self.width > w: self.x = w - self.width
        if self.y + self.height > h: self.y = self.height - h
        self.setVisible(True)
        self.gainFocus()
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/widgets/menu.py/PopupMenu.expose/swapped operands of `-`