Replies: 1 comment 6 replies
-
I'm not sure about this one, you might be able to do it with clrtype with something like: import clrtype
class MyClass(metaclass=clrtype.ClrClass):
__metaclass__ = clrtype.ClrClass # workaround for bug https://github.com/IronLanguages/ironpython3/issues/836
from System.ComponentModel import CategoryAttribute
Category = clrtype.attribute(CategoryAttribute)
def __init__(self):
self._prop = 0
@property
@Category("Category")
def Prop(self):
return self._prop
@Prop.setter
def Prop(self, value):
self._prop = value |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the PropertyGrid control in ironpython, how to use the CategoryAttribute feature to classify and display properties in the PropertyGrid control?
I know how to do it in C#,using Attribute label:
but how to do it in Ironpython? Looking forward to your reply
Beta Was this translation helpful? Give feedback.
All reactions