
\c           @  sN   d  d l  m Z m Z d  d l m Z d  d l Z d  d l Z e d  Z d S(   i(   t   print_functiont   division(   t   mathmlNc      	   C  sq   d d l  m } t j   } t | d  & } | j | t |   d t  Wd QX| rm t j	 d |  n  d S(   sb   Print to Gtkmathview, a gtk widget capable of rendering MathML.

    Needs libgtkmathview-bin
    i(   t   c2pt   wbt   simpleNs   mathmlviewer (
   t   sympy.utilities.mathmlR   t   tempfilet   mkstempt   opent   writeR   t   Truet   ost   system(   t   xt   start_viewerR   t   tmpt   file(    (    s1   lib/python2.7/site-packages/sympy/printing/gtk.pyt	   print_gtk   s    %(	   t
   __future__R    R   t   sympy.printing.mathmlR   R   R   R   R   (    (    (    s1   lib/python2.7/site-packages/sympy/printing/gtk.pyt   <module>   s   