[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] PyQt4 and SIP-4.4.5 issues
From:       Gerard Vermeulen <gerard.vermeulen () grenoble ! cnrs ! fr>
Date:       2006-09-17 15:02:06
Message-ID: 20060917170206.112363d4.gerard.vermeulen () grenoble ! cnrs ! fr
[Download RAW message or body]

On Sun, 17 Sep 2006 16:04:41 +0200
Torsten Marek <shlomme@gmx.net> wrote:

> Gerard Vermeulen schrieb:
> > Phil,
> > 
> > The attached PyQt4.pyqwt.patch (a bit hardwired, but IMO not worth a more general
> > solution) makes it possible to use the Qwt5 designer plugin with pyuic4 without
> > editing the generated Python code (it is impossible to infer the PyQwt module
> > from the header filenames returned by the plugin).
> > 
> 
> Hi Gerard,
> 
> could you please send me a UI file that uses some of your widgets? Right now,
> I'm trying to create a more general/extensible solution for this problem.
> 

Hi Torsten,

Attached you'll find QwtWidgets.ui, all those widgets are part of the PyQt4.Qwt5
module.

A general solution would be to pass a list of modules to pyuic4, so that the
customWidget() function in uic/uiparser can lookup a class name in the list of
modules. In this case, I could do (suppose the -m option takes care of this):

pyuic4 -m PyQt4.Qwt5 QwtWidgets.ui

Thanks -- Gerard


["QwtWidgets.ui" (application/octet-stream)]

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic