[PySide] how to call qCompress() in PySide

Srini Kommoori vasure at gmail.com
Thu Dec 20 10:00:35 CET 2012


I haven't used qCompress myself. But standard python can do this easily.

>>> "test".encode('zlib_codec')

- or -

>>> import zlib
>>> zlib.compress("test")

- or -

>>> import bz2
>>> bz2.compress("test")



On Thu, Dec 20, 2012 at 12:38 AM, ZHONG Zhu
<Zhu.Zhong at alcatel-sbell.com.cn>wrote:

>  >>> from PySide import QtCore
> >>> QtCore.qCompress("test")
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
>     QtCore.qCompress("test")
> AttributeError: 'module' object has no attribute 'qCompress'
>
> Learning PySide. I tried below in my idle IDE to call qCompress() but
> failed. Can anyone help me?
> --------------
> *EasyTest* (Alcatel-Lucent automation test tool) NOW *FREE** on internet*at
> *https://github.com/EasyTest2012/EasyTest*<https://github.com/EasyTest2012/EasyTest/downloads>
>
>
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20121220/87a8e550/attachment.html>


More information about the PySide mailing list