diff -r 0e3e7fbf0bc6 -r 5c98c7e24b02 printrun-src/printrun/gui/controls.py --- a/printrun-src/printrun/gui/controls.py Sat Jun 04 14:27:06 2016 +0200 +++ b/printrun-src/printrun/gui/controls.py Sat Jun 04 15:18:06 2016 +0200 @@ -23,6 +23,8 @@ from .utils import make_button, make_custom_button +from .widgets import PronterOptions + class XYZControlsSizer(wx.GridBagSizer): def __init__(self, root, parentpanel = None): @@ -50,6 +52,8 @@ else: e_base_line = base_line + 2 + lasercut_base_line = 11 + pos_mapping = { "htemp_label": (base_line + 0, 0), "htemp_off": (base_line + 0, 2), @@ -68,6 +72,7 @@ "tempdisp": (tempdisp_line, 0), "extrude": (3, 0), "reverse": (3, 2), + "lasercut": (lasercut_base_line, 0), } span_mapping = { @@ -299,6 +304,13 @@ add("tempgraph", root.graph, flag = wx.EXPAND | wx.ALL, border = 5) root.graph.Bind(wx.EVT_LEFT_DOWN, root.graph.show_graph_window) + # Lasercutter quick controls # + + root.lc_optionsbtn = make_button(parentpanel, _("Lasercutter options"), lambda e: PronterOptions(root, "Laser"), _("Open Lasercutter options"), style = wx.BU_EXACTFIT) + root.printerControls.append(root.lc_optionsbtn) + add("lasercut", root.lc_optionsbtn, flag = wx.EXPAND) + + # Extrusion controls # # Extrusion settings