[lxml-dev] the subelements of my tree are moving alone
TP
paratribulations at free.fr
Wed Mar 11 11:41:05 CET 2009
jholg at gmx.de wrote:
> So essentially you'd need to keep a Python reference to each instantiated
> element that you want to hand to PyQt. I wondered why PyQt doesn't keep
> the Python reference itself, but alas it's just a weak reference:
> http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg16046.html
Thanks Holger and Stefan for your help.
By keeping a reference to all elements in the tree, it works perfectly.
Julien
--
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\
9&1+,\'Z4(55l4('])"
"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)
More information about the lxml-dev
mailing list