[PyKDE] Does pyuic name spacers correctly?

Phil Thompson phil at riverbankcomputing.co.uk
Tue Oct 28 10:45:01 GMT 2003


On Tuesday 28 October 2003 7:29 am, Derek Fountain wrote:
> On Tuesday 28 October 2003 15:07, Derek Fountain wrote:
> > Subject says it all. I have a spacer named closeUpSpacer in designer (and
> > the .ui file). The Python code pyuic generates calls it "spacer_5". I
> > need to change the behaviour of that spacer, so having it called
> > something sensible is rather useful to me.
>
> Replying to my own post...
>
> Answer is, no. In fact, it doesn't name them at all! They aren't even
> stored as child objects - they're just dropped in where they're needed and
> forgotten about. I changed my spacer to a frame and set it invisible. :o)

For questions like this, try running uic on the same .ui file. If the 
behaviour is different then it's a pyuic bug - so please send me the .ui 
file.

Phil




More information about the PyQt mailing list