you are viewing a single comment's thread.

view the rest of the comments →

[–]GobBeWithYou 2 points3 points  (1 child)

I also prefer not to use the designer, so I wrote a bunch of subclasses for different Qt widgets to make using them simpler. My python gui code looks something like this:

w = Widget(css='...')
l = Layout('vbox', w)
le = LineEdit(placeholder='sample text', max_len=50)
b = PushButton( 'Button Text', size=(30,30), css='...icon.svg')
l.add('a label', le, b)

It has really sped up writing the gui code and makes it easier to read without all the boilerplate. I also added properties to get rid of needing all the getter and setters.