[PyKDE] PyKDE-3.7-3, things missing in this version...?

Jim Bublitz jbublitz at nwinternet.com
Mon Aug 11 18:04:01 BST 2003


On Monday August 11 2003 01:29, Jacob Burbach wrote:
> On Monday 11 August 2003 01:39 am, you wrote:
> > On Sunday August 10 2003 21:56, Jacob Burbach wrote:
> Simplest example:
>
> ###################################################
> Python 2.2.3 (#1, Aug  4 2003, 19:27:09)
> [GCC 3.2.2] on linux2
> Type "help", "copyright", "credits" or "license" for more info
>
> >>> import kfile
> >>> kfile.KFileDialog.getExistingDirectory
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: getExistingDirectory
>
> >>> kfile.KFileDialog.getOpenFileName
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: getOpenFileName
>
> >>> kfile.KFileDialog.getOpenFileNames
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: getOpenFileNames
>
> >>> kfile.KFileDialog.getOpenURL
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: getOpenURL
>
> >>> kfile.KFileDialog.getSaveFileName
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: getSaveFileName
>
> >>> for attr in dir(kfile.KFileDialog):
>
> ...	 #should print getOpenFileName...etc...
> ...     if attr[0] == 'g':
> ...             print attr
> ...
> geometry
> getBackgroundTile
> getBorderWidths
> getContentsRect
> getWFlags
> getWState
> grabKeyboard
> grabMouse
> gray
> green
>
> ################################################
>
> The pattern continues like that, for all members of the
> KFileDialog class. Out of all the public and static public
> members listed in the api docs for that class, only
> KFileDialog.show() existed. I tried a few other KFile classes,
> KFileDetailView, KFileIconView, etc, with similar results.

Thanks - my first reaction is to think I need a KApplication 
instantiated to do anything at all, so I didn't think of just 
trying the interpreter (doh!).

I realized after replying last night that I *had* seen a similar 
problem with KFile.isSortByName in the little bit of unit 
testing I do have in place, but I postponed tracking down the 
cause. It appears to be a sip error also, and I've notified 
Phil.

Jim




More information about the PyQt mailing list