Hi guys,<br />
<br /><p>
I'm having trouble with weird activity with a Tkinter GUI I'm creating.
I've stripped down the code somewhat to simplify the problem somewhat,
and I've posted it below, with further explanation at the end of this
message:</p><p></p><pre style="border: 1px inset ; margin: 0px; padding: 6px;
overflow: auto; width: 640px; height: 498px; text-align: left;" dir="ltr"
class="alt2">from Tkinter import *<br />import tkFileDialog,tkSimpleDialog<br
/><br /><br />WINDOWWIDTH=500<br />WINDOWHEIGHT=500<br />class App:<br />   
def __init__ (self,master):<br />        self.window = Frame(master)<br />     
  self.window.pack()<br />        self.master= master<br />        #Create frame
to contain all others<br />       
self.display=Frame(self.window,width=WINDOWWIDTH,height=WINDOWHEIGHT,
bg='black')<br />        self.display.pack()<br />       
self.addMenu(self.master)<br />        #Create widgets<br />       
self.createwidgets()<br />        <br />        <br />        <br />        <br
/>        <br />        <br />        <br />    def createwidgets(self):<br />  
     <br /><br />        self.leftframe=Frame(self.display,
width=WINDOWWIDTH/3,height=WINDOWHEIGHT, bg='white')<br />       
self.rightframe=Frame(self.display, width=2*WINDOWWIDTH/3,height=WINDOWHEIGHT,
bg='blue')<br />        self.leftframe.pack(side=&quot;left&quot;,
expand=&quot;yes&quot;, fill=&quot;x&quot;)<br />       
self.rightframe.pack(side=&quot;left&quot;, expand=&quot;yes&quot;,
fill=&quot;x&quot;)<br />        <br />    <br />    def
displayStories(self):<br />        self.lb = Text(self.leftframe)<br />       
self.lb.pack()<br />        <br />       <br />        <br />    def
addMenu(self,master):<br />        self.menu = Menu(self.window)<br />       
master.config(menu=self.menu)<br />        <br /><br />        self.feedmenu =
Menu(self.menu)<br />        self.menu.add_cascade(label=&quot;RSS&quot;,
menu=self.feedmenu)<br />        self.feedmenu.add_command(label=&quot;Load
RSS&quot;, command=self.displayStories)<br /><br /><br />        <br />       
<br />root=Tk()<br />app=App(root)<br /><br
/>root.mainloop()</pre><p>:</p><p>Basically I'm trying to create 2 columns on
the page so that
(eventually) I will be able to have sepearte text boxes in each column.
The code so far creates a leftframe and rightframe, with parent frame
self.display . When I run the script this happens as expected.<br />
<br />
But next, I want to create a text box within self.leftframe which is
done in function displayStories . self.lb is created with parent
self.leftframe . When this is run, the text box shows up, but my layout
goes to hell. I want the text box to be contained within
self.leftframe, but when it is added self.leftframe disappears (or is
completely filled by the text box), the dimensions that I had specified
for self.leftframe and self.rightframe are forgotten about, and I can
see self.display (black background) on the part of the screen in the
left frame that is not filled by the text box. This makes a lot more
sense if you run the simple script I've posted.<br />
<br />
I've tried adjusting various options, and also using the &quot;grid&quot;
manager
instead of &quot;pack&quot;, but I can't seem to figure out why this is
happening. Can anyone help out?<br />
<br />
Thanks,<br />
Luke</p><p></p>