summaryrefslogtreecommitdiffstats
path: root/examples3/i18n/i18n.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/i18n/i18n.py')
-rwxr-xr-xexamples3/i18n/i18n.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples3/i18n/i18n.py b/examples3/i18n/i18n.py
index 8595d0b..866b097 100755
--- a/examples3/i18n/i18n.py
+++ b/examples3/i18n/i18n.py
@@ -61,7 +61,7 @@ wlist = [] # keep reference to widgets
def showLang(lang):
global translator
- qApp.setPalette(TQPalette(TQColor(220-randint(0,64),220-randint(0,64),220-randint(0,64))))
+ tqApp.setPalette(TQPalette(TQColor(220-randint(0,64),220-randint(0,64),220-randint(0,64))))
language = "mywidget_"+lang+".qm"
fi = TQFileInfo(language)
@@ -73,12 +73,12 @@ def showLang(lang):
return None
if translator is not None:
- qApp.removeTranslator(translator)
+ tqApp.removeTranslator(translator)
translator = None
translator = TQTranslator(None)
translator.load(language,".")
- qApp.installTranslator(translator)
+ tqApp.installTranslator(translator)
m = MyWidget()
m.setCaption("PyTQt Example - i18n - " + unicode(m.caption()))
wlist.append(m)
@@ -109,7 +109,7 @@ def main(argv):
r = dlg.exec_loop()
if r:
- tight = qApp.desktop().screen().width < 1024
+ tight = tqApp.desktop().screen().width < 1024
x = 5
y = 25
for i in range(0,len(qm)):
@@ -119,7 +119,7 @@ def main(argv):
if w == None:
sys.exit(0)
- app.connect(app, SIGNAL('lastWindowClosed()'), qApp, SLOT('quit()'))
+ app.connect(app, SIGNAL('lastWindowClosed()'), tqApp, SLOT('quit()'))
w.setGeometry(x,y,197,356)
w.show()
if tight: