Showing modal .NET dialogs from Python
I am new to this, so please excuse me if I'm not making myself 100% clear. My colleague is writing a modal dialog using .NET. I want to show it from Python, but I can't figure out how. I guess it'll be something like: import CLR import CLR.System.Windows.Forms as MyForm from MyColleaguesFile import MyColleaguesForm MyForm = MyColleaguesForm MyForm.Show() I've looked at the helloform, splitter and wordwin examples, the mailinglist archive etc, but I feel like I'm missing something. Is it even possible to do what I want to do? Thanks! Jill
Just guessing: I think you probably need to start up a "main window" before you do a modal dialog in order to get background threads that handle GUI events started. But I'm way out of my areas of expertise here. -- Aaron Watters ----- Original Message ----- From: Jill-Connie Lorentsen To: pythondotnet@python.org Sent: Thursday, March 11, 2004 9:16 AM Subject: [Python.NET] Showing modal .NET dialogs from Python I am new to this, so please excuse me if I'm not making myself 100% clear. My colleague is writing a modal dialog using .NET. I want to show it from Python, but I can't figure out how. I guess it'll be something like: import CLR import CLR.System.Windows.Forms as MyForm from MyColleaguesFile import MyColleaguesForm MyForm = MyColleaguesForm MyForm.Show() I've looked at the helloform, splitter and wordwin examples, the mailinglist archive etc, but I feel like I'm missing something. Is it even possible to do what I want to do? Thanks! Jill ------------------------------------------------------------------------------ _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
If I'm reading your message correctly, all you need to do is say MyForm.ShowDialog() as opposed to MyForm.Show() Jill-Connie Lorentsen wrote:
I am new to this, so please excuse me if I'm not making myself 100% clear.
My colleague is writing a modal dialog using .NET. I want to show it from Python, but I can't figure out how.
I guess it'll be something like:
import CLR import CLR.System.Windows.Forms as MyForm from MyColleaguesFile import MyColleaguesForm
MyForm = MyColleaguesForm
MyForm.Show()
I've looked at the helloform, splitter and wordwin examples, the mailinglist archive etc, but I feel like I'm missing something. Is it even possible to do what I want to do?
Thanks!
Jill
------------------------------------------------------------------------
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
-- ____________________________________________________ Chris C. Skaryd - CSkaryd@TheOPALGroup.com 27887 Clemens Rd. Suite 2, Cleveland, OH 44145-1167 Tel: 440-871-OPAL Ext. 22 / Fax: 440-871-6722
participants (3)
-
Aaron Watters
-
Chris C. Skaryd
-
Jill-Connie Lorentsen