Eliminate many "doing what you told me to" messages
These messages were perhaps originally intended as a debuggin aid but now add clutter to the output panes. Remaining messges are mostly the result of methods to display attributes of an object (which one could call from the Python console) or actually provide some information which would not be obvious from the circumstances
This commit is contained in:
@@ -50,7 +50,6 @@ import FreeCAD as App
|
||||
import FreeCADGui as Gui
|
||||
from draftutils import params
|
||||
from draftutils import utils
|
||||
from draftutils.messages import _msg
|
||||
from draftutils.translate import translate
|
||||
|
||||
|
||||
@@ -196,8 +195,6 @@ class ViewProviderDraftAnnotation(object):
|
||||
if prop == "AnnotationStyle" and "AnnotationStyle" in properties:
|
||||
if not vobj.AnnotationStyle or vobj.AnnotationStyle == "":
|
||||
# unset style
|
||||
_msg(16 * "-")
|
||||
_msg("Unset style")
|
||||
for visprop in utils.get_default_annotation_style().keys():
|
||||
if visprop in properties:
|
||||
# make property writable
|
||||
@@ -210,8 +207,6 @@ class ViewProviderDraftAnnotation(object):
|
||||
styles[key[12:]] = json.loads(value)
|
||||
|
||||
if vobj.AnnotationStyle in styles:
|
||||
_msg(16 * "-")
|
||||
_msg("Style: {}".format(vobj.AnnotationStyle))
|
||||
style = styles[vobj.AnnotationStyle]
|
||||
for visprop in style.keys():
|
||||
if visprop in properties:
|
||||
@@ -222,7 +217,6 @@ class ViewProviderDraftAnnotation(object):
|
||||
if vobj.getTypeIdOfProperty(visprop) == "App::PropertyColor":
|
||||
value = value & 0xFFFFFF00
|
||||
setattr(vobj, visprop, value)
|
||||
_msg("setattr: '{}', '{}'".format(visprop, value))
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ import FreeCADGui as Gui
|
||||
from draftobjects.layer import Layer
|
||||
from draftutils import params
|
||||
from draftutils import utils
|
||||
from draftutils.messages import _msg
|
||||
from draftutils.translate import translate
|
||||
|
||||
|
||||
@@ -539,12 +538,9 @@ class ViewProviderLayerContainer:
|
||||
base.Group = base_group
|
||||
to_delete.append(layer)
|
||||
elif layer.Label != base_label:
|
||||
_msg(translate("draft", "Relabeling layer:")
|
||||
+ " '{}' -> '{}'".format(layer.Label, base_label))
|
||||
layer.Label = base_label
|
||||
|
||||
for layer in to_delete:
|
||||
_msg(translate("draft", "Merging layer:") + " '{}'".format(layer.Label))
|
||||
doc.removeObject(layer.Name)
|
||||
|
||||
doc.recompute()
|
||||
|
||||
@@ -44,7 +44,6 @@ from draftgeoutils import wires
|
||||
from draftutils import gui_utils
|
||||
from draftutils import params
|
||||
from draftutils import utils
|
||||
from draftutils.messages import _msg
|
||||
from draftutils.translate import translate
|
||||
from draftviewproviders.view_base import ViewProviderDraft
|
||||
|
||||
|
||||
Reference in New Issue
Block a user