From 56be6f123075d8f3345a162479c0e42d0342f111 Mon Sep 17 00:00:00 2001 From: p2or <512368+p2or@users.noreply.github.com> Date: Thu, 4 Aug 2022 12:46:00 +0200 Subject: [PATCH] LOOM_OT_openURL details --- loom.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/loom.py b/loom.py index af9e2aa..6cd676a 100644 --- a/loom.py +++ b/loom.py @@ -3280,21 +3280,19 @@ def execute(self, context): class LOOM_OT_openURL(bpy.types.Operator): - """Open URL""" + """Open URL in default Browser""" bl_idname = "loom.open_url" bl_label = "Documentation" bl_options = {'INTERNAL'} + url: bpy.props.StringProperty(name="URL") description: bpy.props.StringProperty() - url: bpy.props.StringProperty( - name="URL", - description = "Open URL in default Browser") @classmethod def description(cls, context, properties): return properties.description - def execute(self, context): #self.report({'INFO'}, "") + def execute(self, context): webbrowser.open_new(self.url) return {'FINISHED'}