summaryrefslogtreecommitdiff
path: root/scripts/motion.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 08:59:24 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 08:59:24 +0000
commitef231de58a738c83bf505e184fbafa9077f7452e (patch)
treeffdfa60aea48424d925393efea433b1313b6e9a7 /scripts/motion.py
parentee9eaed6cd48db249711912133758679a029b5b1 (diff)
mad optimizations
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):