[Python.NET] Showing modal .NET dialogs from Python

Chris C. Skaryd CSkaryd at TheOPALGroup.com
Thu Mar 11 10:00:39 EST 2004


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 at python.org
>http://mail.python.org/mailman/listinfo/pythondotnet
>


-- 
____________________________________________________
Chris C. Skaryd - CSkaryd at TheOPALGroup.com
27887 Clemens Rd. Suite 2, Cleveland, OH 44145-1167
Tel: 440-871-OPAL Ext. 22 / Fax: 440-871-6722




More information about the PythonDotNet mailing list