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
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
init__(self, parent = 0):
> > QWidget.__init__(self)
> > QGridLayout(self)
> > if __name__ == '__main__':
> >a = QApplication (sys.argv)
> >mywidget = Optimizer()
> >a.exec_loop()
>
> > This produces this:
> > >
?
> >
> > 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
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
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
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.
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
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
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
[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
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
>
> 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
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
[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
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
16 matches
Mail list logo