printrun-src/printrun/gui/controls.py

changeset 33
eee51ca7cbe7
parent 26
5c98c7e24b02
child 34
654a41b13258
equal deleted inserted replaced
32:0abfa4642776 33:eee51ca7cbe7
71 "btemp_gauge": (gauges_base_line + 1, 0), 71 "btemp_gauge": (gauges_base_line + 1, 0),
72 "tempdisp": (tempdisp_line, 0), 72 "tempdisp": (tempdisp_line, 0),
73 "extrude": (3, 0), 73 "extrude": (3, 0),
74 "reverse": (3, 2), 74 "reverse": (3, 2),
75 "lasercut": (lasercut_base_line, 0), 75 "lasercut": (lasercut_base_line, 0),
76 "lasercut_material_thickness": (lasercut_base_line+1, 4),
77 "lasercut_material_thickness_label": (lasercut_base_line+1, 0),
78 "lasercut_pass_count": (lasercut_base_line+2, 4),
79 "lasercut_pass_count_label": (lasercut_base_line+2, 0),
80 "lasercut_pass_zdiff": (lasercut_base_line+3, 4),
81 "lasercut_pass_zdiff_label": (lasercut_base_line+3, 0),
76 } 82 }
77 83
78 span_mapping = { 84 span_mapping = {
79 "htemp_label": (1, 2), 85 "htemp_label": (1, 2),
80 "htemp_off": (1, 1), 86 "htemp_off": (1, 1),
308 314
309 root.lc_optionsbtn = make_button(parentpanel, _("Lasercutter options"), lambda e: PronterOptions(root, "Laser"), _("Open Lasercutter options"), style = wx.BU_EXACTFIT) 315 root.lc_optionsbtn = make_button(parentpanel, _("Lasercutter options"), lambda e: PronterOptions(root, "Laser"), _("Open Lasercutter options"), style = wx.BU_EXACTFIT)
310 root.printerControls.append(root.lc_optionsbtn) 316 root.printerControls.append(root.lc_optionsbtn)
311 add("lasercut", root.lc_optionsbtn, flag = wx.EXPAND) 317 add("lasercut", root.lc_optionsbtn, flag = wx.EXPAND)
312 318
319 root.lc_pass_count = speed_spin = FloatSpin(parentpanel, -1, value = 1, min_val = 1, max_val = 10, digits = 0, style = wx.ALIGN_LEFT, size = (80, -1))
320 add("lasercut_pass_count", root.lc_pass_count)
321 add("lasercut_pass_count_label", wx.StaticText(parentpanel, -1, _("Number of cutting passes:")), flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
322
323 root.lc_pass_zdiff = speed_spin = FloatSpin(parentpanel, -1, increment = 0.1, value = -1, min_val = -2, max_val = 2, digits = 1, style = wx.ALIGN_LEFT, size = (80, -1))
324 add("lasercut_pass_zdiff", root.lc_pass_zdiff)
325 add("lasercut_pass_zdiff_label", wx.StaticText(parentpanel, -1, _("Z movement after each cut:")), flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
326
327 root.lc_material_thickness = speed_spin = FloatSpin(parentpanel, -1, increment = 0.1, value = 4, min_val = 0, max_val = 75, digits = 1, style = wx.ALIGN_LEFT, size = (80, -1))
328 add("lasercut_material_thickness", root.lc_material_thickness)
329 add("lasercut_material_thickness_label", wx.StaticText(parentpanel, -1, _("Material Thickness:")), flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
313 330
314 # Extrusion controls # 331 # Extrusion controls #
315 332
316 # Extrusion settings 333 # Extrusion settings
317 esettingspanel = root.newPanel(parentpanel) 334 esettingspanel = root.newPanel(parentpanel)

mercurial