From ef231de58a738c83bf505e184fbafa9077f7452e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 8 Feb 2003 08:59:24 +0000 Subject: mad optimizations --- scripts/motion.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/motion.py') diff --git a/scripts/motion.py b/scripts/motion.py index 649f07ba..2ed07863 100644 --- a/scripts/motion.py +++ b/scripts/motion.py @@ -149,9 +149,9 @@ def _do_move(): _poplabel.setText(text) scsize = otk.display.screenInfo(_screen).size() size = _poplabel.minSize() - _popwidget.resize(_poplabel.minSize()) - _popwidget.move(otk.Point((scsize.width() - size.width()) / 2, - (scsize.height() - size.height()) / 2)) + _popwidget.moveresize(otk.Rect((scsize.width() - size.width()) / 2, + (scsize.height() - size.height()) / 2, + size.width(), size.height())) _popwidget.show(1) def _move(data): @@ -235,9 +235,9 @@ def _do_resize(): _poplabel.setText(text) scsize = otk.display.screenInfo(_screen).size() size = _poplabel.minSize() - _popwidget.resize(_poplabel.minSize()) - _popwidget.move(otk.Point((scsize.width() - size.width()) / 2, - (scsize.height() - size.height()) / 2)) + _popwidget.moveresize(otk.Rect((scsize.width() - size.width()) / 2, + (scsize.height() - size.height()) / 2, + size.width(), size.height())) _popwidget.show(1) def _resize(data): -- cgit v1.2.3