<html><div style='background-color:'><DIV class=RTE>I am new to Python.&nbsp; I tried to run the following program using IDLE for Python 2.4 and it worked fine:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE><EM>from Tkinter import *</EM></DIV>
<DIV class=RTE><EM>class GUIFramework(Frame):<BR>&nbsp;&nbsp;&nbsp; """This is the GUI"""<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; def __init__(self,master=None):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; """Initialize"""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; """Initialize the base class"""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Frame.__init__(self,master)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; """Display the main window"""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.grid()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; """Create the Text"""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.HelloLabel = Label(master, text="Hello World!")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.HelloLabel.grid()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>if __name__ == "__main__":<BR>&nbsp;&nbsp;&nbsp; guiFrame = GUIFramework()<BR>&nbsp;&nbsp;&nbsp; guiFrame.mainloop()</EM></DIV>
<DIV class=RTE><EM></EM>&nbsp;</DIV>
<DIV class=RTE>When I tried to run this program from the DOS window with the command:</DIV>
<DIV class=RTE>python gui1.py</DIV>
<DIV class=RTE>I received the following error:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>F:\temp\Python Test Folder&gt;python gui1.py<BR>Traceback (most recent call last):<BR>&nbsp; File "gui1.py", line 1, in ?<BR>&nbsp;&nbsp;&nbsp; from Tkinter import *<BR>&nbsp; File "c:\Program Files\Python24\lib\lib-tk\Tkinter.py", line 2, in ?</DIV>
<DIV class=RTE>AttributeError: 'module' object has no attribute 'Label'</DIV>
<DIV class=RTE>F:\temp\Python Test Folder&gt;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Can someone tell me what is wrong?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>In addition, how can I get the program to run under IDLE and have the main window maximized on display without having to click on the Maximize box myself?</DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2749??PS=47575" target="_top">Call friends with PC calling -- FREE </a> </html>