Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 10:45 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wednesday 28 February 2007 9:26 am, [EMAIL PROTECTED] wrote: > > > > > > > On Feb 28, 10:22 am, Phil Thompson <[EMAIL PROTECTED]> > > > wrote: > > > On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > > > > On Feb 28,

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 10:22 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > > > > > > > On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > > > On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> > > > > wrote: > > > > On Tuesday 27 February 2007 1

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > 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 func

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 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 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 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 before a QPaintDevice > > > on Linux. > > > Where co

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

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 10:33 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >> > Is there another possibility of how to solve it just by adding some > >> > lines in script? > > >> I think you h

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Is there another possibility of how to solve it just by adding some > > lines in script? > > I think you have to wrap your script in a shell script > > #!/bin/sh > export LD_LIBRARY_PATH=/path/Linux/rh_linux >

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
On Feb 26, 5:44 pm, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > > > [EMAIL PROTECTED] wrote: > > > OK then I have to reformulate my question. :) > > > In my script I have a line with > > > os.environ["LD_LIBRARY_PATH"]='/path/Linux/rh_linux' > > > bu

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
On Feb 26, 4:32 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi there, > > > I have a problem with setting environment variable in my script that > > uses qt library. For this library I have to define a path to tell the > > script whre to find it. > > > I have a script

Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
Hi there, I have a problem with setting environment variable in my script that uses qt library. For this library I have to define a path to tell the script whre to find it. I have a script called "shrink_bs_070226" that looks like this: ** import sys, re, glob, shu

calling python from msc.adams

2007-02-07 Thread boris . smirnov
Hello all, i need to call python from msc.adams. the syntax is "mdi -c python exit" I have created a linux script called "run_python" with this content: mdi -c python $* exit then a call this script with a command: run_python script.py param1 param2 paramN Everything looks OK, but the prob

Re: extract text from a string

2006-11-09 Thread boris . smirnov
Thank you very much. I needed this kick. :) Rg, Boris Grant Edwards napísal(a): > On 2006-11-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hallo all, > > > > I have tried for a couple of hours to solve my problem with re but I > > have no success. > > > > I have a string containing: "+abc_

extract text from a string

2006-11-09 Thread boris . smirnov
Hallo all, I have tried for a couple of hours to solve my problem with re but I have no success. I have a string containing: "+abc_cde.fgh_jkl\n" and what I need to become is "abc_cde.fgh_jkl". Could anybody be so kind and write me a code of how to extract this text from that string? thank you