[PyKDE] Does PyQt 3.15 work with Qt 3.3.5?

2005-09-07 Thread Huaicai Mo
Hi,   I noticed that Qt 3.3.5 has been released with some bugs fix. I wonder does the new PyQt 3.15 supports Qt 3.3.5?   Thank you very much!   Huaicai ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] Possible PyQt bug??(simple test file attached)

2005-08-26 Thread Huaicai Mo
“passByName=0”, the program will crash, otherwise, it will print the file name that you selected.   BTW, I’m using Python 2.3.4, Qt 3.3.3, PyQt  3.12   Huaicai     ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] Possible PyQt bug?? (simple test file attached)

2005-08-26 Thread Huaicai Mo
  Huaicai   import sys from qt import * class FileItem(QListViewItem): def __init__(self, parent, fio, name=None): QListViewItem.__init__(self, parent, name) self.fileInfo = fio def getFileInfo(self): return self.fileInfo class Directory(QListViewItem

RE: [PyKDE] Help on wrapping a C library

2005-05-24 Thread Huaicai Mo
: 'word.so', 'anotherReverse': , '__name__': 'word', '__doc__': None} >>> w = word.create_word("How are you?") >>>print w >>> print word.reverse(w) Segmentation fault Thank you very much! Regards, Huaicai &g

RE: [PyKDE] Help on wrapping a C library

2005-05-24 Thread Huaicai Mo
I am not sure if the above function is able to free "the_word" member in the "Word" structure, so I tried keeping "free(word->the_word);" in the reverse() too, it doesn't help either. For the whole generated C files, please see the attachment. Huaic

[PyKDE] (no subject)

2005-05-23 Thread huaicai
ot;struct Word" was mapped to a Python class, and the function "myReverse()" just works fine, which means it does find the .so file correctly. BTW, I tried what you suggested by removing the key word "struct" and adding the %ModuleHeaderCode", it doesn't have any visuable effect. Huaicai ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

RE: [PyKDE] Help on wrapping a C library

2005-05-23 Thread Huaicai Mo
++? I didn't see any known packages wrapped by Pyrex, did you? Huaicai > -Original Message- > From: Roberto Alsina [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 3:35 PM > To: huaicai > Subject: Re: [PyKDE] Help on wrapping a C library > > Not to be

[PyKDE] Help on wrapping a C library

2005-05-23 Thread huaicai
the "word" library like: "char *myReverse(const char *w);". It works fine in python when I do this: print word.myReverse("How are you?") Please see the C source/header file and SIP specification file in the attachments. Can any one tell me what's wrong