[Tutor] [Q] how to use more than one source file.

Young-Jin Lee ylee12@uiuc.edu
Mon, 5 Nov 2001 15:25:33 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_00F5_01C1660E.1C657130
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, all.
I have a question on how to use more than one file creating a Python =
application.
Most example code uses only one file, but it is not realistic. I want to =
separate codes into multiple files and use them.
For instance, suppose that I created a main python module in the =
mainApp.py and I created a separate mainFrame.py which will be called =
from mainApp.py. In this situation, how can I run the whole application =
package? Once I checked everything works as I expected, how can I =
created one executable file out of these two files?
Thanks in advance.

YJ

------=_NextPart_000_00F5_01C1660E.1C657130
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi, all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a question on how to use more =
than one file=20
creating a Python application.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Most example code uses only one file, =
but it is not=20
realistic. I want to separate codes into multiple files and use=20
them.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For instance, suppose that I created a =
main python=20
module in the mainApp.py and I created a separate mainFrame.py which =
will be=20
called from mainApp.py. In this situation, how can I run the whole =
application=20
package? Once I checked everything works as I expected, how can I =
created one=20
executable file out of these two files?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>YJ</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_00F5_01C1660E.1C657130--