From 29c973bb2e213acf1d06b36757b4c0dafad6070c Mon Sep 17 00:00:00 2001 From: Gobol Date: Sat, 20 Feb 2021 20:49:06 +0100 Subject: [PATCH] - correction of tool key (string to int) in tclcommandaligndrill.py - correction of "method" selection (ints 0..4 as in combobox.get_value() instead of strings) in tclcommandpaint.py --- tclCommands/TclCommandAlignDrill.py | 2 +- tclCommands/TclCommandPaint.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tclCommands/TclCommandAlignDrill.py b/tclCommands/TclCommandAlignDrill.py index c467d6bd..1fc81c6a 100644 --- a/tclCommands/TclCommandAlignDrill.py +++ b/tclCommands/TclCommandAlignDrill.py @@ -173,7 +173,7 @@ class TclCommandAlignDrill(TclCommandSignaled): drills.append(point_mirror) init_obj.tools = { - '1': { + 1: { 'tooldia': tooldia, 'drills': drills, 'solid_geometry': [] diff --git a/tclCommands/TclCommandPaint.py b/tclCommands/TclCommandPaint.py index 948fab35..14036326 100644 --- a/tclCommands/TclCommandPaint.py +++ b/tclCommands/TclCommandPaint.py @@ -122,15 +122,15 @@ class TclCommandPaint(TclCommand): if 'method' in args: method = args['method'] if method == "standard": - method = _("Standard") + method = 0 # _("Standard") elif method == "seed": - method = _("Seed") + method = 1 # _("Seed") elif method == "lines": - method = _("Lines") + method = 2 # _("Lines") elif method == "laser_lines": - method = _("Laser_lines") + method = 3 # _("Laser_lines") else: - method = _("Combo") + method = 4 # _("Combo") else: method = str(self.app.defaults["tools_paint_method"])