# HG changeset patch # User mdd # Date 1501250242 -7200 # Node ID c96f20e950295f81f207f73de0b4b2374ccc4d12 # Parent 23efe2c538724d2ba699d47920dc47763eac7511 Changed min/max setting values diff -r 23efe2c53872 -r c96f20e95029 printrun-src/printrun/pronterface.py --- a/printrun-src/printrun/pronterface.py Fri Jul 28 15:56:52 2017 +0200 +++ b/printrun-src/printrun/pronterface.py Fri Jul 28 15:57:22 2017 +0200 @@ -1,8 +1,13 @@ #!/usr/bin/env python -# FILE MODIFIED BY NEOSOFT - MALTE BAYER +# FILE MODIFIED BY NEOSOFT - MALTE DI DONATO # Embed Lasercut functions from laser.py import laser +try: + from module_watcher import ModuleWatcher + mw = ModuleWatcher() + mw.watch_module('laser') + mw.start_watching() # This file is part of the Printrun suite. # @@ -853,8 +858,8 @@ # first add the lasercutter options self.settings._add(StaticTextSetting("separator_lc_general", "General laser settings", "", group = "Laser")) - self.settings._add(SpinSetting("lc_travel_speed", 120, 10, 300, "Travel speed in mm/s", "", "Laser"), self.update_lc_settings) - self.settings._add(SpinSetting("lc_engrave_speed", 10, 10, 300, "Engrave speed in mm/s", "", "Laser"), self.update_lc_settings) + self.settings._add(SpinSetting("lc_travel_speed", 120, 1, 300, "Travel speed in mm/s", "", "Laser"), self.update_lc_settings) + self.settings._add(SpinSetting("lc_engrave_speed", 10, 1, 300, "Engrave speed in mm/s", "", "Laser"), self.update_lc_settings) self.settings._add(StaticTextSetting("separator_lc_bitmap", "PNG Bitmap processing", "", group = "Laser")) self.settings._add(FloatSpinSetting("lc_bitmap_speed_factor", 1.0, 0.1, 2.0, "Engrave speed factor", "", "Laser"), self.update_lc_settings) @@ -869,8 +874,8 @@ self.settings._add(StaticTextSetting("separator_lc_svg", "SVG processing", "", group = "Laser")) self.settings._add(FloatSpinSetting("lc_svg_speed_factor", 1.0, 0.1, 2.0, "Engrave speed factor", "", "Laser"), self.update_lc_settings) self.settings._add(FloatSpinSetting("lc_svg_smoothness", 0.2, 0.1, 10.0, "Smoothness", "Smoothness of curves (smaller value = smoother curve)", "Laser"), self.update_lc_settings) - self.settings._add(SpinSetting("lc_svg_width", 50, 1, 200, "Width (mm)", "Image width", "Laser"), self.update_lc_settings) - self.settings._add(SpinSetting("lc_svg_height", 50, 1, 200, "Height (mm)", "Image height", "Laser"), self.update_lc_settings) + self.settings._add(SpinSetting("lc_svg_width", 50, 1, 250, "Width (mm)", "Image width", "Laser"), self.update_lc_settings) + self.settings._add(SpinSetting("lc_svg_height", 50, 1, 250, "Height (mm)", "Image height", "Laser"), self.update_lc_settings) self.settings._add(ComboSetting("lc_svg_scalemode", "scale", ["scale", "stretch"], "Scaling mode", "scale to dimensions / stretch to dimensions", "Laser"), self.update_lc_settings)