title: Display Google Map API in Python Tkinter window
body: <p>Hi I am working on Google Map API in Python. I am using the source code which can be found at this <a href="http://pymaps.googlecode.com/svn/trunk/pymaps.py" rel="nofollow noreferrer">website</a> </p>
  
  <p>This code when compiled produces a 'htm' file showing a Google Map with the markers placed on the map.</p>
  
  <p>So I have created a Window Frame shown below:</p>
  
  <pre><code>from Tkinter import *  # order seems to matter: import Tkinter first
  import Image, ImageTk  # then import ImageTk
  class MyFrame(Frame):
      def __init__(self, master, im):
          Frame.__init__(self, master)
          self.caption = Label(self, text="Some text about the map")
          self.caption.grid()
          self.image = ImageTk.PhotoImage(im) # &lt;--- results of PhotoImage() must be stored
          self.image_label = Label(self, image=self.image, bd=0) # &lt;--- will not work if 'image = ImageTk.PhotoImage(im)'
      self.image_label.grid()
      self.grid()
  
  im = Image.open("test.html") # read map from disk
  
  # or you could use the PIL image you created directly via option 2 from the URL request ...
  mainw = Tk()
  mainw.frame = MyFrame(mainw, im)
  mainw.mainloop()
  </code></pre>
  
  <p>And with that Window Frame I want to display the 'htm' image of the Google Map in that Window Frame.</p>