Re: [Maya-Python] PyQt custom frameLayout widget

2012-05-10 Thread Manuel Macha
I'm on pyqt 4.7.3. The mistake that I was making was that I defined the signal inside my init method. Thanks Justin, I'll definitely stick with the new syntax from now on. p.s: here's a working example: http://pastebin.com/zcTVbat0 On Fri, May 11, 2012 at 12:29 PM, Justin Israel wrote: > New st

Re: [Maya-Python] PyQt custom frameLayout widget

2012-05-10 Thread Justin Israel
New style signal slots were introduced in Qt 4.5. Maybe you are using a really old version of Qt? On May 10, 2012, at 7:20 PM, Manuel Macha wrote: > Hi Justin, > many thanks for your help. > I've cleaned up the mousePressEvent method as suggested (the original was > eclipse's suggested defa

Re: [Maya-Python] PyQt custom frameLayout widget

2012-05-10 Thread Manuel Macha
Hi Justin, many thanks for your help. I've cleaned up the mousePressEvent method as suggested (the original was eclipse's suggested default syntax for overriding a method) I'd prefer using the new-style signal-slots mechanism but in this case I couldn't get it to work, even trying several variation

Re: [Maya-Python] PyQt custom frameLayout widget

2012-05-10 Thread Justin Israel
I don't think there is anything wrong with the approach you are taking. This is the norm. The framework can't provide every type of functionality, but they do give you a ton of building blocks to make it easy to compose your own. There isn't much to say about your code other than me nit picking

[Maya-Python] PyQt custom frameLayout widget

2012-05-10 Thread Manuel Macha
One thing I really miss with PyQt is having a Maya-style collapsible frameLayout readily available, so I hacked this together: http://pastebin.com/5y8tsBE7 It's pretty simple at the moment. There's neither a label nor an icon indicating the collapsed state. Before I spend too much time on it, could