Hi,
I am writing a Python plugin, and I want to popup a custom dialog.
For simple dialogs I have found:
import PyQt4.QtGui
l = PyQt4.QtGui.QInputDialog.getText(wid, 'Slice', 'Length')
to work fine. But I need more complicate dialogs. I just can't get
the signals/slots to work. Yes I ha
Hi,
So at the very end of that email that you linked, I mentioned the problem
that paraview hangs when it encounters a runtime error, instead of reporting
the error. I haven't had the chance to investigate the problem, but it's
really annoying!
Anyway, I think your problem is just a few typos...
Hi,
I hang my head in shame, I really should have thrown my code into a
nonparaview test app. I will do that in future.
Pat you simply are the best! Thank you so much.
The business about self.acceptfoo vs self, acceptfoo arises from my
lack of understanding about the slots/signals in Qt. I'v
Hi
I posted about this ages ago, and with your help got it working on
linux, but now I am having problems getting it going under Windows.
Let me summarize what I am doing.
I am writing a Python plugin, and I want to popup a custom dialog.
For simple dialogs I have found:
import PyQt4.QtGui
Are you working from a paraview installer, or compiling paraview yourself?
I was able to reproduce the linux bug (by putting a 'print "hello"' at the
end) and then solve it by commenting out two lines in
ParaView/Qt/Python/pqPythonShell.cxx. Just search for the lines with
"processEvents" and comme
Hi,
> Are you working from a paraview installer, or compiling paraview yourself? I
downloaded stock standard 3.8.1 for Windows.
> was able to reproduce the linux bug (by putting a 'print "hello"' at the end)
> and then solve it by commenting out two lines in ParaView/Qt/Python/
> pqPythonShell
Before compiling paraview on windows, you might try this-
You can prevent processEvents from being called by taking the python console
widget out of the loop. Paraview sets sys.stdout and sys.stderr to a helper
object that directs the output to the widget (where processEvents is
called):
>>> im
Hi Pat,
On Sun, Oct 17, 2010 at 04:09:49PM -0400, pat marion wrote:
> Before compiling paraview on windows, you might try this-
>
> You can prevent processEvents from being called by taking the python console
> widget out of the loop. Paraview sets sys.stdout and sys.stderr to a helper
> object
Hi,
> happens in the same thread. The fix is either to comment out the
> processEvents
> call in pqPythonShell.cxx, or release the lock before calling processEvents
> and
> then reacquire it afterward.
When I get my compilation working, I would like to test this. Is this
something like what