summaryrefslogtreecommitdiffstats
path: root/examples/i18n/i18n.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/i18n/i18n.py')
-rwxr-xr-xexamples/i18n/i18n.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/i18n/i18n.py b/examples/i18n/i18n.py
index ef17d27..db23cb6 100755
--- a/examples/i18n/i18n.py
+++ b/examples/i18n/i18n.py
@@ -2,7 +2,7 @@
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
-from whrandom import randint
+from random import randint
import sys
from PyTQt.tqt import *
@@ -109,7 +109,7 @@ def main(argv):
r = dlg.exec_loop()
if r:
- tight = tqApp.desktop().screen().width < 1024
+ tight = tqApp.desktop().screen().width() < 1024
x = 5
y = 25
for i in range(0,len(qm)):