<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>Dear
all,</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>While I know that
this could be a more general Python question, since IronPython has its own
interpreter, I thought that I should probably ask this question here in case it
actually is IPy specific. Also, I am new to Python so if there is a
document somewhere that answers this question, I am more than happy to read it
if someone points me to it.</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>So, the
question. I have a program that has multiple classes. Since I have a
C#/Java background, I have so far put all these classes in a separate file, and
thus in a separate module. They are organized like
this:</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>-
Main.py</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2>calls</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2>- ApplicationForm Class</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>which
contains</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>- Widget
Class</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>Main pretty much
just creates a new ApplicatoinForm instance and displays it.
ApplicationForm then has some Widget instances on it. </FONT></SPAN><SPAN
class=920100916-15012008><FONT face=Arial size=2>When I make a change to the
Widgets, I find myself reloading the Widget module, then the ApplicationForm
module, and then finally Main.py in order to have my changes reflected on the
form. However, I know that this is somewhat against the Python philosophy
of dynamic changes while running a program. Is there a better way to do
this, or do I have to use this process because I'm using Windows Forms?
Also, if I do have to continue using this process, is there a quick one-liner
that I could use to reload all my changes without having to reload each module
by hand?</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial size=2>Thank
you,</FONT></SPAN></DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=920100916-15012008><FONT face=Arial
size=2>Rocco</FONT></SPAN></DIV></BODY></HTML>