Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-29 Thread David Douard
Hmm interesting topic, I recently had to switch back from ui files to py files because I couldnt get py2exe to package the ui files correctly (Any help appreciated though) I usually use both of them to deal with this problem. My python code which depends on ui files (ie. class which

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-29 Thread Juan Manuel Santos
From: Sebastian Elsner sebastianels...@freenet.de To: pyqt@riverbankcomputing.com Date: Tuesday 28 September 2010 Hmm interesting topic, I recently had to switch back from ui files to py files because I couldnt get py2exe to package the ui files correctly (Any help appreciated though) The

[PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread pard
Hi I have found that some people use pyuic4 to compile their ui files and some load them dynamically using loadUI. Does anyone have the pro's and con's of each of these methods? What is the recommended PyQT way of doing this? Regards Pard ___ PyQt

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Sebastian Wiesner
Hi, I prefer uic.loadUi, it's simply much more convenient and much easier to use. It saves the tedious invocation of pyuic4 during development. And no risk of weird errors caused by a forgotten compilation of your user interface ... the application automatically uses the user interface, that

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Wolfgang Rohdewald
On Dienstag 28 September 2010, Sebastian Wiesner wrote: So basically it just works, whereas pyuic4 means additional work. UI compilers are fine for C++, where you have to compile anyway, but in Python things are easier. Just my opinion ... +1 however I never tested how much time either

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Tyler W. Wilson
On 9/28/2010 1:19 PM, Wolfgang Rohdewald wrote: On Dienstag 28 September 2010, Sebastian Wiesner wrote: So basically it just works, whereas pyuic4 means additional work. UI compilers are fine for C++, where you have to compile anyway, but in Python things are easier. Just my opinion ... +1

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Hans-Peter Jansen
On Tuesday 28 September 2010, 18:19:43 pard wrote: Hi I have found that some people use pyuic4 to compile their ui files and some load them dynamically using loadUI. Does anyone have the pro's and con's of each of these methods? What is the recommended PyQT way of doing this? Being

Re: [PyQt] pyuic4 vs uic.loadUI

2010-09-28 Thread Sebastian Elsner
Hmm interesting topic, I recently had to switch back from ui files to py files because I couldnt get py2exe to package the ui files correctly (Any help appreciated though) Secondly using ui files I loose the comfort of auto-completion with pydev and Eclipse, because pydev wouldnt know how to