title: not able to get root window resize event
body: <p>im trying to display the size(dimension) of the root window (top level window) on a label. whenever the user resize the window, new window dimensions should be displayed on the label. I tried to bind the  event for the root window but im getting an error as follows</p>
  
  <blockquote>
    <p>TclError: bad event type or keysym "configure"</p>
  </blockquote>
  
  <p>the code i used is given below. Its just a rough sample. Can anyone help me what im doing wrong.</p>
  
  <pre><code>def main():
    root=Tk()
    root.title("Test Numbers")
    root.geometry("550x350")
    def d(event):
        print event.width,event.height
    root.bind('&lt;configure&gt;',d)
    root.mainloop()
  
  if __name__=="__main__":
    main()
  </code></pre>