Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Non-REPL usage #195

Closed
timholy opened this issue Nov 7, 2015 · 6 comments
Closed

Non-REPL usage #195

timholy opened this issue Nov 7, 2015 · 6 comments

Comments

@timholy
Copy link
Member

timholy commented Nov 7, 2015

Breakage reported here. I've verified it (even if you add showall(win)).

@hustf
Copy link

hustf commented Nov 7, 2015

Not quite the same symptoms, but perhaps same cause as for #165?

@vtjnash
Copy link
Contributor

vtjnash commented Nov 8, 2015

yep, looks like without isinteractive, the code no longer creates the gtk_main task automatically (b56e8da#diff-0000751d49843767d583b66145fa8b46R18)

@astrieanna
Copy link

Is this going to be fixed soon?
If not, would altering the section of the readme that talks about how to make Gtk things work without the REPL to contain the solution from StackOverflow be an improvement?

@paulmelis
Copy link

paulmelis commented Mar 7, 2021

This issue appears to be still there with Julia 1.5.3 and 1.6 RC1. I indeed found the stackoverflow post mentioned by OP to figure out why no window was shown by my Gtk.jl script.

Apart from that, even the example from the Getting Started section in the docs does not work outside the REPL without adding Gtk.gtk_main(). And the docs contain no mention of gtk_main when searching for it. The only other mention of non-REPL use of scripts using Gtk.jl is for handling premature closure of a window at the end of a script.

@tknopp
Copy link
Collaborator

tknopp commented Mar 8, 2021

fixed here: https://github.com/JuliaGraphics/Gtk.jl/blob/master/docs/src/manual/nonreplusage.md

but unfortunately the docs do not deploy right now. :-(

@tknopp
Copy link
Collaborator

tknopp commented Mar 8, 2021

ok, docs are now updated. This now can be closed.

@tknopp tknopp closed this as completed Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants