[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] [PATCH] i18n
From: Hans-Peter Jansen <hpj () urpla ! net>
Date: 2002-09-30 13:22:58
[Download RAW message or body]
Hi Detlev,
what do you think about the attached patch. Without keeping a=20
reference to the widgets, they all disappear, but the last,
when selecting All...
Really nice example, though.
Hans-Peter
["i18n-keepref.diff" (text/x-diff)]
--- i18n.py.orig Tue Sep 10 14:56:22 2002
+++ i18n.py Mon Sep 30 15:08:39 2002
@@ -56,6 +56,7 @@
self.emit(PYSIGNAL('mapped(int)'), (self.map[qo],))
translator = None
+wlist = [] # keep reference to widgets
def showLang(lang):
global translator
@@ -80,6 +81,7 @@
qApp.installTranslator(translator)
m = MyWidget()
m.setCaption("PyQt Example - i18n - " + unicode(m.caption()))
+ wlist.append(m)
return m
def main(argv):
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic