Re: gplt_x11 ignores SIGINT and SIGTSTP. Why?
Dima Kogan <[email protected]> Sat, 03 Sep 2022 15:07:23 -0700
| Newsgroups | gmane.comp.graphics.gnuplot.devel |
|---|---|
| Message-ID | <[email protected]> |
Ethan A Merritt <[email protected]> writes: > On Saturday, 3 September 2022 13:12:11 PDT Dima Kogan wrote: >> >> Let's say the request was "I want a gnuplot-powered plotting widget in >> >> my GTK application". What would you suggest in that case? >> > >> > Isn't that what wxt is? >> >> Is it? If I was building a GTK application (not wx; plain GTK), could I >> use the gnuplot wxt terminal as a widget in that application? The docs >> don't make that clear, and definitely don't tell you how to do that. > > You seem to be asking for a cross-platform UI with widgets based on gtk. > What I meant was that wxWidgets claims to be exactly that, although it > doesn't use (or at least doesn't default to using) gtk on all the > supported platforms. So if you base your UI on wxWidgets, then gnuplot's > wxt terminal is a natural fit. I don't actually write GTK applications, so *I* don't want this. But somebody could be writing a GTK application, and they could want a plotting widget. As I understand it, this isn't something that gnuplot can provide today, unless that person rewrites their application with wxt. >> Similarly, what if I was building a Qt application? "help qt" mentions a >> "widget" option, which maybe provides this function, but that option >> isn't documented, so I don't know what it does. > > In the file .../src/Makefile.am is a commented out section that builds > a simple Qt app with embedded gnuplot windows. > > Edit that file to un-comment the section and re-run > ./prepare; ./configure; make > ./embed_example Cool! If this works, should building this be enabled by default? I just tried it, and it doesn't work right for me. The embed_example program builds. Running it pops up a window that disappears immediately. Then I get the shell prompt back implying that the embed_example application has exited. BUT it keeps running in the background apparently. And I do get a qt window with a plot maybe a minute later. Sometimes. Sometimes the background process just exits after a few minutes without showing me a plot. _______________________________________________ gnuplot-beta mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta