Commit 0cc3d8a1 by Steven Xu

hide console window

parent 9a1a4a40
...@@ -706,7 +706,7 @@ class Tree(list): ...@@ -706,7 +706,7 @@ class Tree(list):
pdf_path = '{0:}.pdf'.format(file.name) pdf_path = '{0:}.pdf'.format(file.name)
_canvas_frame.print_to_file(ps_path) _canvas_frame.print_to_file(ps_path)
_canvas_frame.destroy_widget(widget) _canvas_frame.destroy_widget(widget)
subprocess.call(['epstopdf', ps_path]) subprocess.call(['epstopdf', ps_path], shell=True)
with open(pdf_path, 'rb') as sr: with open(pdf_path, 'rb') as sr:
res = sr.read() res = sr.read()
os.remove(ps_path) os.remove(ps_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment