title: How to display images in a grid in python's tkinter?
body: <p>I want to insert photos into a grid in python's tkinter, and then display those photos in rows and columns.(number of rows and columns are depending on what you input)</p>
  
  <p>I tried using appending list to insert picture into list but i can only display one column of it.</p>
  
  <pre><code>from tkinter import *
  
  w = Tk()
  
  w.geometry('1000x800')
  
  p = 'picture.png'
  
  img = PhotoImage(file=p)
  
  for i in range(0, 5):
      photo_list.append(Label(w, image=img))
  
  for j in range(0, len(photo_list)):
      photo_list[j].pack()
  </code></pre>
  
  <p>I want to display those pictures in both rows and columns.
  for example, if row=3, column=3, the output should be:</p>
  
  <p>[picture][picture][picture]</p>
  
  <p>[picture][picture][picture]</p>
  
  <p>[picture][picture][picture]</p>