On Mon, Oct 30, 2006 at 12:37:42PM -0700, Fernando Perez wrote:
> Jut to clarify, Gael: in ipython (with -pylab or -{g,w,q}thread), what
> happens is that IPython lets the GUI toolkit run in the main thread,
> and then attaches its own routines for user code execution as the
> toolkit's idle timer
On 10/30/06, Gael Varoquaux <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 30, 2006 at 10:36:09AM -0800, Christopher Barker wrote:
> > However, perhaps you can take advantage of a similar feature (at least
> > in wx) -- can you make the Frame Modal temporarily? My understanding of
> > how model dialogs w
On Mon, Oct 30, 2006 at 10:36:09AM -0800, Christopher Barker wrote:
> However, perhaps you can take advantage of a similar feature (at least
> in wx) -- can you make the Frame Modal temporarily? My understanding of
> how model dialogs work is that they stop the main event loop, and then
> have t
Gael Varoquaux wrote:
> I think that for such a blocking call to work, all we would need is a
> way to start and stop the eventloop (I am talking in wx terms, the only
> GUI toolkit I know).
That's a trick, because if you stop the event loop, then you don't get
the mouse clicks...
However, perha
> "Gael" == Gael Varoquaux <[EMAIL PROTECTED]> writes:
Gael> On Mon, Oct 30, 2006 at 08:21:20AM -0600, John Hunter wrote:
>> blocking calls in pylab with gtk threading may be possible but
>> it is beyond my powers. I would write this with a callback, eg
>> create a class that
On Mon, Oct 30, 2006 at 08:21:20AM -0600, John Hunter wrote:
> blocking calls in pylab with gtk threading may be possible but it is
> beyond my powers. I would write this with a callback, eg create a
> class that takes a callback in the constructor and calls the callback
> after n clicks with a li
> "Gael" == Gael Varoquaux <[EMAIL PROTECTED]> writes:
Gael> For those who have never used matlab, ginput is a blocking
Gael> call that takes one optional argument n, waits for n click
Gael> on the current figure, and returns the coordinates of those
Gael> n clicks. I have been
For those who have never used matlab, ginput is a blocking call that
takes one optional argument n, waits for n click on the current figure,
and returns the coordinates of those n clicks. I have been trying to
write such a function in pylab and I can't find a solution.
Here is a first attempt:
++