I create an
Eto SemiModalForm using:
args = TrimMeshArgs() dlg = TrimMeshDialog(args) result = UI.EtoExtensions.ShowSemiModal(dlg, RhinoDoc.ActiveDoc, UI.RhinoEtoApp.MainWindow) dlg.BringToFront()
TrimMeshDialog I make a call to an external procedure that trims a mesh:
# Trim button click handler. def OnTrimButtonClick(self, sender, e): trim_mesh(simple_trim, make_hole, make_trench)
I would like to minimize the Eto form before calling the trim_mesh procedure so that the Rhino window is clear of obstructions for selecting the area to be trimmed. So I want something like this:
# Trim button click handler. def OnTrimButtonClick(self, sender, e): self.form.Window.Minimize() trim_mesh(simple_trim, make_hole, make_trench) self.form.Window.Maximize()
I have done this with .NET windows but I am failing here. The error I am getting is:
Message: 'TrimMeshDialog' object has no attribute 'form'
but I have not figured out what to use instead of
Any help on this would be greatly appreciated.