I'm pretty sure I added a commit that fixes this behavior, but that may
have happened after the 4.0 release.  See commit:


commit af99ee38d6edcefaeb5f5bd2936f0bf82bdcf565
Author: Pat Marion <pat.mar...@kitware.com>
Date:   Fri May 24 12:23:56 2013 +1000

    Change the behavior of pqPythonShell::pushScript() to split over
newlines

    Previously, you could not paste multiline statements into the ParaView
    python console.  This commit changes the behavior of the pushScript()
    function so that it splits the script code over the newline character
    and pushes each line separately.

    This does change the behavior of entering multiline statements:
previously
    pushScript() would attempt to detect the indent and start the next line
    using the indent of the previous line.  This behavior has been removed.

    The new behavior closely matches the behavior of the standard
commandline
    python interpreter.

    Change-Id: I899ec69194a1cce3d82cefc2f13048aad8f81fec


On Fri, Nov 1, 2013 at 3:34 PM, Utkarsh Ayachit <utkarsh.ayac...@kitware.com
> wrote:

> Nope, it's a bug alright. Mind reporting it Alan/Rich? We should fix it.
>
> On Fri, Nov 1, 2013 at 2:46 PM, Scott, W Alan <wasc...@sandia.gov> wrote:
> > I totally agree.  Utkarsh, is there any reason Rich or I shouldn’t write
> up
> > a bug/ feature request?
> >
> >
> >
> > Alan
> >
> >
> >
> > From: paraview-boun...@paraview.org [mailto:
> paraview-boun...@paraview.org]
> > On Behalf Of Cook, Rich
> > Sent: Friday, November 01, 2013 12:40 PM
> > To: paraview@paraview.org
> > Subject: [EXTERNAL] [Paraview] bug report: copy and paste into python
> >
> >
> >
> > I consider it a bug that I cannot paste more than one line of text at a
> time
> > into the ParaView Python Shell window.  If for example I paste two lines
> of
> > python, only the first line is executed.  This is a hassle for
> experimenters
> > like myself who create a code snippet, try it out, modify it, try it
> again….
> > This happens on Linux and Mac for me.  I am displaying back to a Mac even
> > when running on Linux, so it might be that there is some Mac-specific
> > XQuartz window manager/line ending trickery happening.
> >
> > Not sure where to report so I'm posting to the list.  Apologies if this
> is
> > the wrong venue.
> >
> > Thanks!
> >
> >
> >
> > --
> >
> > ✐Richard Cook
> >
> > ✇ Lawrence Livermore National Laboratory
> >
> > Bldg-453 Rm-4024, Mail Stop L-557
> >
> > 7000 East Avenue,  Livermore, CA, 94550, USA
> >
> > ☎ (office) (925) 423-9605
> >
> > ☎ (fax) (925) 423-6961
> >
> > ---
> >
> > Information Management & Graphics Grp., Services & Development Div.,
> > Integrated Computing & Communications Dept.
> >
> > (opinions expressed herein are mine and not those of LLNL)
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to