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