Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Marcos Dione
damn, it was a (insert very offensive phrase here) typo! see the posted code again... On Mon, Oct 08, 2007 at 05:21:13PM -0700, Jim Bublitz wrote: > because (from the KDE API docs): Yes, I knew that, that's why I searched for the alternative and found KIO.NetAccess.mimetype. > So PyKDE

Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Jim Bublitz
On Monday 08 October 2007 16:16, Marcos Dione wrote: Running this: from kdecore import * from kio import * from kparts import * import sys KCmdLineArgs.init (sys.argv, sys.argv[0], "testmime", "", "") args= KCmdLineArgs.parsedArgs () app= KApplication () #app.exec_loop () for u in ('http://api.

Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Marcos Dione
On Mon, Oct 08, 2007 at 09:38:21AM -0700, Jim Bublitz wrote: > I'm using KIO.NetAccess.mimeType in a PyKDE4 application and it works fine > there - there could be some difference to the PyKDE 3 version. It would help > if you'd provide a short example program that exhibits the problem so I can >

Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Jim Bublitz
On Monday 08 October 2007 07:41, Marcos Dione wrote: > hi all. I've been playing with kparts a little and now I hit a wall. > I try to load the proper part for a given url. the code I have looks > like this: > > > mime= KMimeType.findByURL(url, 0, False, False) > mimeType= mime.name () > # this

[PyQt] loading arbitrary kparts

2007-10-08 Thread Marcos Dione
hi all. I've been playing with kparts a little and now I hit a wall. I try to load the proper part for a given url. the code I have looks like this: mime= KMimeType.findByURL(url, 0, False, False) mimeType= mime.name () # this trick I saw in # http://lxr.kde.org/source/KDE/kdegraphics/kuic