octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QtScript and Toolboxes


From: Michael Goffioul
Subject: Re: QtScript and Toolboxes
Date: Sat, 10 Nov 2012 13:24:27 -0500

On Sat, Nov 10, 2012 at 11:57 AM, Philip Nienhuis <address@hidden> wrote:
Michael Goffioul wrote:
On Fri, Nov 9, 2012 at 10:47 AM, Daniel Carrera <address@hidden
<mailto:address@hidden>> wrote:


    On 9 November 2012 13:57, Philip Nienhuis <address@hidden
    <mailto:address@hiddennet>> wrote:

        AFAIU you can use Java to build a GUI around some toolbox. In
        the Java
        package there are some pretty basic dialog functions; but you
        can invoke
        e.g., Java AWT to build your own GUI.



    Thanks. I wasn't aware of the Java package. I just looked it up. It
    sounds like it should be enough to make meaningful toolboxes for Octave.


Just for the record, this doesn't work on Mac OS X, because of the
restriction that the GUI must run in the main thread of a process. Works
fine under Linux and Windows, though.

Yes:
http://sourceforge.net/mailarchive/message.php?msg_id=28468472

But it makes me wonder: is a Java-based GUI, started from Octave, any different from other Java-based progs?

Yes. In a regular java program, the GUI thread is the main thread. While in octave, the main thread is octave itself. That's also for the same reason that Octave GUI works a bit differently: the Qt app is the main thread, while octave runs in a child thread.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]