[PyQt] pyuic5 failed to convert!

Phil Thompson phil at riverbankcomputing.com
Sat Dec 5 10:16:58 GMT 2015


On 5 Dec 2015, at 3:03 a.m., Vincent Vande Vyvre <vincent.vande.vyvre at telenet.be> wrote:
> 
> Le 04/12/2015 21:43, Miguel Alejandro Fernandez a écrit :
>> 
>> incongruity between default value and generated code!
>> 
>> lines added:
>> 
>> 121        self.verticalLayout.setContentsMargins(0, 0, 0, 0)#
>> 
>> 140        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)#
>> 
>> 157        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)#
>> 
>> 
>> _______________________________________________
>> PyQt mailing list    
>> PyQt at riverbankcomputing.com
>> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> I thing that's nothing to do with pyuic.
> 
> If the content margins property is written in the .py file that's because it is written into the .ui file.
> 
> So, for the value of this property, in my Designer (4.8.6 Linux) the default values are always 0 except for the top grid layout where the values are 9 in all directions.

There is a problem. Those extra lines are generated by uic but not by pyuic.

Phil


More information about the PyQt mailing list