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

Jacob Burbach stolenID at cfl.rr.com
Mon Aug 11 10:30:01 BST 2003


On Monday 11 August 2003 01:39 am, you wrote:
> On Sunday August 10 2003 21:56, Jacob Burbach wrote:
> > Is my installation just broken or are their things missing
> > this go around? Namely the two big ones are, KURLRequester,
> > and all the "get" methods of KFileDialog, ie; getOpenFileName,
> > getExistingDirectory, etc.., basically everything that made it
> > useful =-|.
> >
> > So is just me, or is something not right?
>
> KURLRequester doesn't show up in the kfile.py file, although it's
> everywhere else it's supposed to be. This appears to be a sip
> problem, and I've emailed Phil about it. It appears there's a
> bunch of other stuff missing from kfile.py as well, but I may
> not be reading the code correctly either.
>
> KFileDialog, on the other hand, can be imported from within the
> interpreter, and the methods you listed are in
> libkfilecmodule.so, so they should be accessible. It appears it
> might be another sip problem.  I don't have any code to test it.
> If you have a short example, I'd appreciate it if you could post
> it to the list.
>
> It appears only kfile has this problem - at least the other
> modules I checked don't seem to have it.
>
> I can generate a kludge to fix  the KURLRequester problem (I
> think), but I'd rather see what Phil says. Hopefully it'll be
> fixed in a few days.
>
> > Tested on:
> > Gentoo Linux, Qt-3.1.2, KDE-3.1.1 and KDE-3.1.2, Sip/PyQt-3.7,
> > PyKDE-3.7-3, Python-2.2.3
>
> Thanks for the bug report.
>
> Jim

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.




More information about the PyQt mailing list