Re: [IronPython] invoking new form

2008-01-18 Thread jane janet

Hi all,
 
I think you should try this.
 
#in mod1
import NameofFile #(the .py file that contains Form2())
 
def newWinOpen():
   self.Hide()
   self.form2 = NameofFile.Form2()
   self.form2.ShowDialog()
 
I was wandering if this can solve your problem exactly.
 
All the best,
Jane


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 18 Jan 2008 15:22:41 
-0800Subject: Re: [IronPython] invoking new form






What happens when you do this?  Is an exception thrown?  Does it just hang 
waiting w/ nothing happening?  Also, are you doing this from the console or 
from modules which just get executed stand alone (e.g. ipy foo.py)?
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vadim 
KhaskelSent: Friday, January 18, 2008 3:19 PMTo: [EMAIL PROTECTED]: 
[IronPython] invoking new form
 
Hi all,
 
I’m trying to invoke a form from python module (mod1) (which is not in the same 
name space as Form1 class  like this:
#in mod1
def newWinOpen():
Application.Run(Form2()) #I did import Form2 into this module#
 
Doesn’t work…
 
in my next attempt I put mod1 where I calling Form2 put into the same namespace 
as Form1 and Form2
 
 
In this case namespace class in Form1 doesn't see the mod1...
 
 
What is the right way to do that???
 
Thank you,
 
Vadim
 



Climb to the top of the charts!  Play the word scramble challenge with star 
power. Play now!
_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] Users Digest, Vol 42, Issue 25

2008-01-18 Thread Vadim Khaskel
ystem.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllSystem.Windows.Forms
Assembly Version: 2.0.0.0Win32 Version: 2.0.50727.1433 
(REDBITS.050727-1400)CodeBase: 
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllAccessibility
Assembly Version: 2.0.0.0Win32 Version: 2.0.50727.1433 
(REDBITS.050727-1400)CodeBase: 
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dllArtOfTest.WebAii
Assembly Version: 1.0.500.0Win32 Version: 1.0.500.0CodeBase: 
file:///C:/WINDOWS/assembly/GAC_MSIL/ArtOfTest.WebAii/1.0.500.0__4fd5f65be123776c/ArtOfTest.WebAii.dll
** JIT Debugging **To enable just-in-time (JIT) 
debugging, the .config file for thisapplication or computer (machine.config) 
must have thejitDebugging value set in the system.windows.forms section.The 
application must also be compiled with debuggingenabled.
For example:

When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT 
debugger registered on the computerrather than be handled by this dialog box.
 
 
 
 
 
 
 
> From: [EMAIL PROTECTED]> Subject: Users Digest, Vol 42, Issue 25> To: 
> users@lists.ironpython.com> Date: Fri, 18 Jan 2008 16:08:50 -0800> > Send 
> Users mailing list submissions to> users@lists.ironpython.com> > To subscribe 
> or unsubscribe via the World Wide Web, visit> 
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> or, via email, 
> send a message with subject or body 'help' to> [EMAIL PROTECTED]> > You can 
> reach the person managing the list at> [EMAIL PROTECTED]> > When replying, 
> please edit your Subject line so it is more specific> than "Re: Contents of 
> Users digest..."> > > Today's Topics:> > 1. invoking new form (Vadim 
> Khaskel)> 2. Re: invoking new form (Dino Viehland)> > > 
> --> > 
> Message: 1> Date: Fri, 18 Jan 2008 23:19:00 +> From: Vadim Khaskel 
> <[EMAIL PROTECTED]>> Subject: [IronPython] invoking new form> To: 
> > Message-ID: <[EMAIL PROTECTED]>> Content-Type: 
> text/plain; charset="windows-1252"> > > Hi all,> > I?m trying to invoke a 
> form from python module (mod1) (which is not in the same name space as Form1 
> class like this:> #in mod1> def newWinOpen():> Application.Run(Form2()) #I 
> did import Form2 into this module#> > Doesn?t work?> > in my next attempt I 
> put mod1 where I calling Form2 put into the same namespace as Form1 and 
> Form2> > > In this case namespace class in Form1 doesn't see the mod1...> > > 
> What is the right way to do that???> > Thank you,> > Vadim> 
> _> Climb to 
> the top of the charts!? Play the word scramble challenge with star power.> 
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan> 
> -- next part --> An HTML attachment was scrubbed...> 
> URL: 
> http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080118/87e30be6/attachment.html
>  > > --> > Message: 2> Date: Fri, 18 Jan 2008 
> 15:22:41 -0800> From: Dino Viehland <[EMAIL PROTECTED]>> Subject: Re: 
> [IronPython] invoking new form> To: Discussion of IronPython 
> > Message-ID:> <[EMAIL PROTECTED]>> > 
> Content-Type: text/plain; charset="us-ascii"> > What happens when you do 
> this? Is an exception thrown? Does it just hang waiting w/ nothing happening? 
> Also, are you doing this from the console or from modules which just get 
> executed stand alone (e.g. ipy foo.py)?> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Khaskel> Sent: Friday, January 
> 18, 2008 3:19 PM> To: users@lists.ironpython.com> Subject: [IronPython] 
> invoking new form> > Hi all,> > I'm trying to invoke a form from python 
> module (mod1) (which is not in the same name space as Form1 class like this:> 
> #in mod1> def newWinOpen():> Application.Run(Form2()) #I did import Form2 
> into this module#> > Doesn't work...> > in my next attempt I put mod1 where I 
> calling Form2 put into the same namespace as Form1 and Form2> > > In this 
> case namespace class in Form1 doesn't see the mod1...> > > What is the right 
> way to do tha

Re: [IronPython] invoking new form

2008-01-18 Thread Dino Viehland
What happens when you do this?  Is an exception thrown?  Does it just hang 
waiting w/ nothing happening?  Also, are you doing this from the console or 
from modules which just get executed stand alone (e.g. ipy foo.py)?

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Khaskel
Sent: Friday, January 18, 2008 3:19 PM
To: users@lists.ironpython.com
Subject: [IronPython] invoking new form

Hi all,

I'm trying to invoke a form from python module (mod1) (which is not in the same 
name space as Form1 class  like this:
#in mod1
def newWinOpen():
Application.Run(Form2()) #I did import Form2 into this module#

Doesn't work...

in my next attempt I put mod1 where I calling Form2 put into the same namespace 
as Form1 and Form2


In this case namespace class in Form1 doesn't see the mod1...


What is the right way to do that???

Thank you,

Vadim


Climb to the top of the charts!  Play the word scramble challenge with star 
power. Play 
now!
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] invoking new form

2008-01-18 Thread Vadim Khaskel

Hi all,
 
I’m trying to invoke a form from python module (mod1) (which is not in the same 
name space as Form1 class  like this:
 #in mod1
def newWinOpen():
Application.Run(Form2()) #I did import Form2 into this module#
 
Doesn’t work…
 
in my next attempt I put mod1 where I calling Form2 put into the same namespace 
as Form1 and Form2
 
 
In this case namespace class in Form1 doesn't see the mod1...
 
 
What is the right way to do that???
 
Thank you,
 
Vadim
_
Climb to the top of the charts!  Play the word scramble challenge with star 
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com