Hi,<br>i&#39;m a new user of tkinter,<br>I would like to adjust my canevas to the main window when a resize it.<br>i&#39;ve just find this on the web : <a href="http://infohost.nmt.edu/tcc/help/pubs/tkinter/layout-mgt.html#root-resize">http://infohost.nmt.edu/tcc/help/pubs/tkinter/layout-mgt.html#root-resize</a><br>
but in my case that don&#39;t work<br><br>this is my code :<br>2 canvas and 2 scrollbars<br><span id="result_box" class="short_text"><span style="" title="">it runs
 but it does not fit at the window</span></span><br>if someone can help me, very very thanks<br><br>#####################################################################################<br>from Tkinter import *<br><br>class Application(Frame):<br>
    def __init__(self, master=None):<br>        Frame.__init__(self, master)<br>        self.grid(sticky=N+S+E+W)<br>        self.canCompose()<br><br>    def canCompose(self):<br>        top=self.winfo_toplevel()<br>        top.rowconfigure(0, weight=1)<br>
        top.columnconfigure(1, weight=1)<br>        self.rowconfigure(0, weight=1)<br>        self.columnconfigure(1, weight=1)<br><br>        self.canCompose = Canvas(self, width = 800, height = 400 ,bg = &#39;red&#39;, scrollregion=(0,0,100,400))<br>
        self.canComposeTitle = Canvas(self, width = 100, height =400 ,bg = &#39;blue&#39;, scrollregion=(0,0,0,400))<br><br>        self.canComposeTitle.grid(row=0, column=0,<br>            sticky=N+S+E+W)<br>        self.canCompose.grid(row=0, column=1,<br>
            sticky=N+S+E+W)<br><br>        self.scrollCompose_y = Scrollbar(self, orient=&#39;vertical&#39;)<br>        self.scrollCompose_y.config(command = self.twoScroll)<br>        self.scrollCompose_x = Scrollbar(self, orient=&#39;horizontal&#39;,<br>
                command=self.canCompose.xview)<br><br>        self.canComposeTitle[&#39;yscrollcommand&#39;] = self.scrollCompose_y.set<br>        self.canCompose[&#39;yscrollcommand&#39;] = self.scrollCompose_y.set<br>        self.canCompose[&#39;xscrollcommand&#39;] = self.scrollCompose_x.set<br>
        self.scrollCompose_y.grid(row=0, column=2,sticky=N+S)<br>        self.scrollCompose_x.grid(row=1, column=0, columnspan=2, sticky=E+W)<br><br>    def twoScroll(self, *args):<br>        &quot;&quot;&quot;Send y scroll *args to the two canvas&quot;&quot;&quot;<br>
        self.canCompose.yview(*args)<br>        self.canComposeTitle.yview(*args)<br>        print args<br><br>app = Application()<br>app.master.title(&quot;Sample application&quot;)<br>app.mainloop()<br>#####################################################################################<br>