title: Passing variables to Tkinter geometry method
body: <p>I've been trying for a while now to find out if there is a way to pass variables to the <code>geometry</code> method in Tkinter.</p>
  
  <p>I know the <code>geometry</code> method accepts a string:</p>
  
  <pre><code>root = Tk()
  root.geometry("1200X1024")
  </code></pre>
  
  <p>I want to open the window based in the screen width. </p>
  
  <pre><code>root = Tk()
  w = root.winfo_screenwidth()
  h = root.winfo_screenheight()
  </code></pre>
  
  <p>What I've tried is this:</p>
  
  <pre><code>geometry = "%dX%d" % (w,h)
  root.geometry(geometry)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>root.geometry(("%dX%d" % (w,h)))
  </code></pre>
  
  <p>No matter how I concatenate the variables it gives this error:</p>
  
  <pre><code>TlcError: bad geometry specifier "1280X1024"
  </code></pre>
  
  <p>So is it possible to pass variables to the <code>geometry</code> method?</p>