IronPython Eto.Forms Windows app

Hi @curtisw ,
Is it possible to create a .NET Windows desktop application with Eto.Forms? So independent from Rhino, just a Windows application, the way it can be done with WindowsForms, WPF… in Visual Studio.

If it is possible, then which languages are supported?
Visual Studio 2019 Eto template supported C# and F#?

I am interested in IronPython/PythonNET languages.
There was never Eto template for IronPython/PythonNET Windows application?
Is this possible to be done?

Thank you for the reply.

Hi @djordje ,
Yes Eto.Forms can be used to create standalone Windows desktop applications without Rhino. It’s a cross-platform GUI framework that works on Windows, macOS, and Linux.
C#, F#, VB.net, ironpy…
For reference NuGet Gallery | Eto.Forms 2.9.0
Hope this helps,
Farouk

Hi @curtisw , @farouk.serragedine ,
Thank you very much.
Are you sure there is a template for IronPython to create a Windows deskop application?

Do you mind, if I ask for a screenshot of it?
Thank you in advance.

I’m not aware of any template for this.

You’d need to load IronPython into your dotnet app along with Eto though. I think you’d be best to create the application instance and Main Dialog/Form in C#/Eto alongside your Python Runtime. And then I’d suggest using IronPython to manipulate that main window.

Thank you very much @CallumSykes ,
Do you happen to know if I can find a simple example of this approach?

I can’t find one but I could likely create one for you.

Whenever you have time in the following period, this would be of great help.
I am trying to use rhino3dm library with Eto.Forms Windows app, but it can any simple example.

Once the Desktop app is created - do users need to have installed IronPython, in order to use the app?

No you’d ideally bundle this into the app

This works for me on Mac and Windows but you’ll likely need to change some things to get it working how you need.

Thank you very much for the example @CallumSykes

So to make it work, I need the following installed:

  1. Windows 10 or 11
  2. .NET 8
  3. IronPython 3.4.2
  4. Visual Studio 2022? Visual Studio 2019 will not work?
  5. Eto.Forms extension
  6. Any additional Visual Studio Extension?

A few apps actually exist. I can’t remember where I found them. If you’re curious enough I can probably dig those examples up. I also know that ETO itself has stand alone apps (that may or may not exist).
In spite of having potential IronPython never really got used much.

  1. Windows 10 or 11 ← Yep
  2. .NET 8 ← Yep
  3. IronPython 3.4.2 ← This is used as a Nuget, you don’t need to install it yourself
  4. Visual Studio 2022 ← 2019 is 6 years old, go for the latest
  5. Eto.Forms extension ← Optional
  6. Any additional Visual Studio Extension? ← None needed
  7. Eto.Forms.Templates will help