- _popwidget.update()
- area = otk.display.screenInfo(_screen).rect()
- _popwidget.move(area.x() + (area.width() -
- _popwidget.width()) / 2,
- area.y() + (area.height() -
- _popwidget.height()) / 2)
+ if POPUP_CENTERED:
+ scsize = ob.openbox.screen(_screen).size()
+ x = (scsize.width() - size.width()) / 2
+ y = (scsize.height() - size.height()) / 2
+ else:
+ x = y = 0
+ size = _poplabel.minSize()
+ _popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))