tag:blogger.com,1999:blog-5861237338972566400.post4398906014848243537..comments2024-03-16T03:30:17.960-04:00Comments on Digital Fabrication for Designers: Easily Create Graphical User Interfaces in Rhino PythonMark Meierhttp://www.blogger.com/profile/13554561290076658169noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-5861237338972566400.post-83028020423504758842022-03-16T11:52:06.114-04:002022-03-16T11:52:06.114-04:00Yes. If I wanted to make dialogs today I'd use...Yes. If I wanted to make dialogs today I'd use Eto. <br />Mark<br />Mark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-63204937643373502662022-03-16T04:36:40.524-04:002022-03-16T04:36:40.524-04:00Hi, is it possible to use Eto.Forms to achieve the...Hi, is it possible to use Eto.Forms to achieve the same dialog?Sofiahttps://www.blogger.com/profile/18324469942693495691noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-8472871476987056862019-10-31T06:36:24.718-04:002019-10-31T06:36:24.718-04:00Thanks for the information-I hope others will find...Thanks for the information-I hope others will find your comment and benefit. I'm personally switching to Eto for my Rhino UI needs. That wasn't available when I wrote mine. Mark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-48689701267800129712019-10-30T16:46:34.999-04:002019-10-30T16:46:34.999-04:00Thanks for the Meier_UI_Utility.py code.
It is rea...Thanks for the Meier_UI_Utility.py code.<br />It is really useful.<br />I had to tweak it though. When monitors are using dpi scaling it is not behaving properly due to width being set directly. The way I did it is to use MinimumSize property instead, accordingly with AutoSize set to True. <br /> if (width != None):<br /> c.MinimumSize = System.Drawing.Size(width, 0)<br /> c.AutoSize = True<br />Regardsnimportequoihttps://www.blogger.com/profile/13452507766414480760noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-39366645547860726992019-01-26T19:36:21.496-05:002019-01-26T19:36:21.496-05:00great !great !Bamilovehttps://www.blogger.com/profile/09906416738314502417noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-69211840769063918672018-11-28T22:24:44.480-05:002018-11-28T22:24:44.480-05:00Thank you! This outta do it!Thank you! This outta do it!Willhttps://www.blogger.com/profile/16366643410038438655noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-38339858699028766002018-11-28T22:08:46.681-05:002018-11-28T22:08:46.681-05:00Look to use a Form rather than a dialog. A Form is...Look to use a Form rather than a dialog. A Form is modeless. <br />https://github.com/picoe/Eto/wiki/ControlsMark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-28577787731124668232018-11-28T21:56:57.059-05:002018-11-28T21:56:57.059-05:00I've only found a .ShowModal() method of an Et...I've only found a .ShowModal() method of an Eto dialog so that seems to block everything until dialog is closed, by design. Doesn't look like there is a way around that. Willhttps://www.blogger.com/profile/16366643410038438655noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-42597089703608396982018-11-27T22:54:15.792-05:002018-11-27T22:54:15.792-05:00You are doing it from a Python node in Grasshopper...You are doing it from a Python node in Grasshopper (GhPython) or just from Python in Rhino? I can't picture why you'd have UI from Grasshopper node so I must have that wrong. But I also don't know why a modeless Eto dialog would block.Mark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-8084257028246215512018-11-26T21:50:28.786-05:002018-11-26T21:50:28.786-05:00Wish I had known you while I was at UMICH. I'm...Wish I had known you while I was at UMICH. I'm starting to look at making some custom tool UI with Eto in GhPython but can't figure out how to talk to rhino document. Anything done with RhinoCommon is only executed after the dialog is closed. Do you happen to know how to communicate between a dialog and the actual rhino doc?Willhttps://www.blogger.com/profile/16366643410038438655noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-69199739575213038112017-10-11T11:03:33.760-04:002017-10-11T11:03:33.760-04:00Hi,
I'd recommend looking at ETO for your us...Hi, <br /><br />I'd recommend looking at ETO for your user interface needs. If you Google "Rhino Python ETO" you'll find a number of threads related to it. That's the future of UI as it's recommended and used by McNeel. <br /><br />I'm not sure about scripting the mouse interaction. Mark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-12548951124944527812017-10-09T05:44:12.583-04:002017-10-09T05:44:12.583-04:00Wow, All of this looks very promising! Thanks.
Do ...Wow, All of this looks very promising! Thanks.<br />Do you know If I could use python to switch to a custom Key-Mousebutton mapping for viewport navigation?<br />Could this be done via script?jjcghttps://www.blogger.com/profile/15423939498218225455noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-76420208390289271562016-07-04T14:19:50.602-04:002016-07-04T14:19:50.602-04:00Hi Adrian,
Not using what I've provided. If ...Hi Adrian, <br /><br />Not using what I've provided. If you need more advanced alignment you can use a better layout tool (like SharpDevelop). Moving forward (beyond Rhino 5) I believe ETO is going to be what's used to provide UI support. <br /><br />MarkMark Meierhttps://www.blogger.com/profile/13554561290076658169noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-31640631886140755462016-07-03T19:00:33.172-04:002016-07-03T19:00:33.172-04:00Hi there, this is great and has encouraged me to n...Hi there, this is great and has encouraged me to now move over from RhinoScript to Python - watch this space!<br />Just a question - with the Relatively Prime example, if the labels are different lengths the NumbericUpDown are not aligned. Is there a way of setting a tab position of of the NumericUpDown?<br />Or a way of creating columns in these forms?Anonymoushttps://www.blogger.com/profile/06773512540300145154noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-78092508779796309022016-06-14T14:45:00.756-04:002016-06-14T14:45:00.756-04:00Thank you so much! These are perfect examples to g...Thank you so much! These are perfect examples to get me started with forms and probably cover all the functionality I need for my project.<br />Wimhttps://www.blogger.com/profile/00005147229161154580noreply@blogger.comtag:blogger.com,1999:blog-5861237338972566400.post-80342408795596124322015-09-07T16:53:24.254-04:002015-09-07T16:53:24.254-04:00Thank you so much, man!
You have no idea how helpf...Thank you so much, man!<br />You have no idea how helpful this material was to me.Anonymousnoreply@blogger.com