From 4a8b868234f6afe11e62ab643b7e678c8ee5ebc4 Mon Sep 17 00:00:00 2001 From: Duduf Date: Tue, 29 Nov 2022 17:46:18 +0100 Subject: [PATCH] added setComment --- ramses/ram_object.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ramses/ram_object.py b/ramses/ram_object.py index 3dc6a60..35e2910 100644 --- a/ramses/ram_object.py +++ b/ramses/ram_object.py @@ -158,6 +158,10 @@ def comment( self ): """ return self.get('comment', '') + def setComment( self, comment ): + """Sets a new comment""" + self.set("comment", comment) + def color( self ): """Returns the color as (R,G,B)""" colorName = self.colorName().lstrip("#")