#!/usr/bin/env python
#
# make_svg_epi
#    .svg to .epi GUI wrapper
#
# Neil Gershenfeld
# CBA MIT 7/19/11
#
# (c) Massachusetts Institute of Technology 2011
# Permission granted for experimental and personal use;
# license for commercial sale available from MIT.
#
# imports
#
import wx,sys
from fab_set import fab_frame
from panel_control import control_panel
from panel_svg import svg_panel
from panel_svg_path import svg_path_panel
from panel_path_epi import path_epi_panel
#
# command line
#
print "command line: make_svg_epi [input_file [size]]"
print "   input_file = input .svg file (optional)"
print "   size = image panel size (optional)"
#
# start wx
#
app = wx.App()
#
# add panels to frame
#
frame = fab_frame("make_svg_epi",sys.argv)
frame.control_panel = control_panel(frame)
frame.sizer.Add(frame.control_panel,(0,0),span=(1,4),flag=wx.ALIGN_CENTER_HORIZONTAL)
frame.svg_panel = svg_panel(frame)
frame.sizer.Add(frame.svg_panel,(1,0))
frame.path_panel = svg_path_panel(frame)
frame.sizer.Add(frame.path_panel,(1,1))
frame.epi_panel = path_epi_panel(frame)
frame.sizer.Add(frame.epi_panel,(1,2))
#
# defaults
#
frame.set_svg_epi()
#
# fit and show frame
#
frame.Fit()
frame.Show()
#
# start mainloop
#
app.MainLoop()

bc468fd7770b79c11ce2f450756bec024209175c
#!/usr/bin/env python
#
# make_svg_epi
#    .svg to .epi GUI wrapper
#
# Neil Gershenfeld
# CBA MIT 7/19/11
#
# (c) Massachusetts Institute of Technology 2011
# Permission granted for experimental and personal use;
# license for commercial sale available from MIT.
#
# imports
#
import wx,sys
from fab_set import fab_frame
from panel_control import control_panel
from panel_svg import svg_panel
from panel_svg_path import svg_path_panel
from panel_path_epi import path_epi_panel
#
# command line
#
print "command line: make_svg_epi [input_file [size]]"
print "   input_file = input .svg file (optional)"
print "   size = image panel size (optional)"
#
# start wx
#
app = wx.App()
#
# add panels to frame
#
frame = fab_frame("make_svg_epi",sys.argv)
frame.control_panel = control_panel(frame)
frame.sizer.Add(frame.control_panel,(0,0),span=(1,4),flag=wx.ALIGN_CENTER_HORIZONTAL)
frame.svg_panel = svg_panel(frame)
frame.sizer.Add(frame.svg_panel,(1,0))
frame.path_panel = svg_path_panel(frame)
frame.sizer.Add(frame.path_panel,(1,1))
frame.epi_panel = path_epi_panel(frame)
frame.sizer.Add(frame.epi_panel,(1,2))
#
# defaults
#
frame.set_svg_epi()
#
# fit and show frame
#
frame.Fit()
frame.Show()
#
# start mainloop
#
app.MainLoop()
