Files
StockSharp/Diagram.Core/python/designer_extensions.py
T
2025-06-08 18:01:52 +03:00

10 lines
341 B
Python

import clr
clr.AddReference("StockSharp.Diagram.Core")
from StockSharp.Diagram import DiagramExternalAttribute
# Decorator to mark methods as external diagram elements
def diagram_external(func):
# Apply the DiagramExternalAttribute to the function
func.__dict__['__diagram_external__'] = DiagramExternalAttribute()
return func