Federico Beffa <be...@ieee.org> skribis: > On Mon, Nov 16, 2015 at 1:57 PM, Ludovic Courtès <l...@gnu.org> wrote: >> Federico Beffa <be...@ieee.org> skribis: >>> Yes, given that the back-end currently used by matploblib doesn't >>> work, I would change that by using 'Tkinter'. >>> >>> Since you are at it, I would also change the default back-end by >>> changing 'GTK3Agg' to 'TkAgg' in the following snippet: >>> >>> (lambda (port) >>> (format port "[rc_options]~% >>> backend = GTK3Agg~%"))))) >> >> OTOH I see that Matploblib already depends on GTK+ 3.x and >> python-pygobject, so maybe it’s best to stick to GTK+ by default? > > Unfortunately, the back-ends based on GTK+ are broken and I didn't > manage to find how to fix the problem. > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20888 > > That's why I'm looking forward to get Tkinter :-)
Could you or someone else test this patch on current master? Thanks in advance! Ludo’.
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 39d0751..76bda96 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3190,6 +3190,7 @@ transcendental functions).") `(("python-pyparsing" ,python-pyparsing) ("python-pygobject" ,python-pygobject) ("gobject-introspection" ,gobject-introspection) + ("python-tkinter" ,python "tk") ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated ;; from 'gtk+') provides the required 'typelib' files used by ;; 'gobject-introspection'. The location of these files is set with the @@ -3244,7 +3245,7 @@ transcendental functions).") (call-with-output-file "setup.cfg" (lambda (port) (format port "[rc_options]~% -backend = GTK3Agg~%"))))) +backend = TkAgg~%"))))) (alist-cons-after 'install 'install-doc (lambda* (#:key outputs #:allow-other-keys)