Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
could anybody tell/explain me > > > > > why the same file is working on Windows? > > > > > Did anybody already meet with something similar Win vs. Linux? > > > > > > b. > > > > > Here is my simple script: > > > > &g

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread Phil Thompson
is working on Windows? > > > > Did anybody already meet with something similar Win vs. Linux? > > > > > > > > b. > > > > > > Here is my simple script: > > > > > > import sys > > > from qt import * > > > class

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
init__(self, parent = 0): > > QWidget.__init__(self) > > QGridLayout(self) > > if __name__ == '__main__': > >a = QApplication (sys.argv) > >mywidget = Optimizer() > >a.exec_loop() > > > This produces this: > > >

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread Phil Thompson
? > > > > b. > > Here is my simple script: > > import sys > from qt import * > class Optimizer(QWidget): >def __init__(self, parent = 0): > QWidget.__init__(self) > QGridLayout(self) > if __name__ == '__main__': >a = QAppl

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
GridLayout(self) if __name__ == '__main__': a = QApplication (sys.argv) mywidget = Optimizer() a.exec_loop() This produces this: > python qt_script_bs_070228.py QPaintDevice: Must construct a QApplication before a QPaintDevice Any suggestions here? Thanks BTW: One question: when

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > > > When your programs stops with the error, it should also be printing a > > stack trace. This is a list of all the functions that have been called > > when Python had the probl

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Phil Thompson
On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > When your programs stops with the error, it should also be printing a > stack trace. This is a list of all the functions that have been called > when Python had the problem. > > You shouldn't have to do anything extra to get the stack trace.

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread shredwheat
When your programs stops with the error, it should also be printing a stack trace. This is a list of all the functions that have been called when Python had the problem. You shouldn't have to do anything extra to get the stack trace. -- http://mail.python.org/mailman/listinfo/python-list

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
shredwheat napĂ­sal(a): > On Feb 27, 3:35 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > I don't see any QPaintDevice here. Where does that come from? You need to > > give more information, a stack trace and a reduced example exhibiting the > > behaviour. > > QWidget is derived from QPaintDe

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread shredwheat
On Feb 27, 3:35 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > I don't see any QPaintDevice here. Where does that come from? You need to > give more information, a stack trace and a reduced example exhibiting the > behaviour. QWidget is derived from QPaintDevice, under Qt, no widgets can be i

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On Feb 27, 11:56 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> > Yes that I can deduce, but why I'm asking is why it's different on >> > Windows and Linux. Should it not be platform independent? >> >> It should be. I've got no idea why it seems to work on windows

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
On Feb 27, 11:56 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > Yes that I can deduce, but why I'm asking is why it's different on > > Windows and Linux. Should it not be platform independent? > > It should be. I've got no idea why it seems to work on windows but I can say > one thing for su

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
> > Yes that I can deduce, but why I'm asking is why it's different on > Windows and Linux. Should it not be platform independent? It should be. I've got no idea why it seems to work on windows but I can say one thing for sure: that would be an artifact that you shouldn't rely on. In Qt, you _alw

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
On Feb 27, 11:46 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi all, > > > I have a python script that works without any problem on Windows but > > with error: > > > QPaintDevice: Must construct a QApplication

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi all, > > I have a python script that works without any problem on Windows but > with error: > > QPaintDevice: Must construct a QApplication before a QPaintDevice > > on Linux. > > Where could be the problem? This is the

QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
Hi all, I have a python script that works without any problem on Windows but with error: QPaintDevice: Must construct a QApplication before a QPaintDevice on Linux. Where could be the problem? Thanks. Boris -- http://mail.python.org/mailman/listinfo/python-list