summaryrefslogtreecommitdiff
path: root/scripts/motion.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/motion.py')
-rw-r--r--scripts/motion.py12
1 files changed, 6 insertions, 6 deletions
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):