Grasshopper

algorithmic modeling for Rhino

Hi forum

I wonder if Python support custom mouse-over tooltips like done in this thread: 

http://www.grasshopper3d.com/forum/topics/tooltips-on-scripte-compo...

In general does ironPython provide the same customizing functionality as C#/vb? e.g. modifying a user object with drop-down functionality like the override event ToolStripDropDown seen in this thread:

http://www.grasshopper3d.com/forum/topics/how-to-write-this-kind-gha?

Best regards

Kristoffer

Views: 1120

Replies to This Discussion

Adding mouse-over tooltips to a Python component is indeed possible. While you can do it using similar code as with C#/VB, a neat and more simple approach is to use the docstring method (see the attached file, make sure to note the indentation levels used). To add the dropdown message you can use ghenv.Component.Message (also exemplified in the attached file). Hope that helps..

Attachments:

Thank You Anders

I now see the true power of python :P

;)

As this question is somehow related to the previous one, I'll post it here. 

Does anyone have experience with event handling between GH and winforms using Python?

E.g how do I get events like button clicks registrered in the GH-py-environment? 

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service