#15152: Sage interpreter blocks Tkinter GUI
------------------------------+-----------------------------
Reporter: dunfield | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.12
Component: user interface | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------------+-----------------------------
IPython allows running Tkinter (and many other GUI toolkits) so that the
GUI doesn't block the IPython interpreter. In Sage 5.10 and earlier this
worked in Sage's interpreter as well as vanilla IPython. However, in Sage
5.11 it only works in vanilla IPython. A minimal example (for both Linux
and OS X) is:
{{{
sage: import Tkinter
sage: root = Tkinter.Tk()
}}}
Pre version 5.11, this brings up a small window titled "tk"; in Sage 5.11
it does nothing. In 5.11 you can manually start the Tk gui via:
{{{
sage: root.mainloop()
}}}
but you don't get a new interpreter prompt until you quit the Tk GUI.
I strongly suspect the issue is the new IPython inputhook (in
"sage/misc/inputhook.pyx") that was added in Sage 5.11 as part of #14523.
--
Ticket URL: <http://trac.sagemath.org/ticket/15152>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.