title: The place of buttons, label and widgets (python)
body: <p>In the windows, there are two widgets including Canvas and Listbox, two buttons, and a label. Based on the code that I have written, now is look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/rj0O3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rj0O3.png" alt="enter image description here"></a></p>
  
  <p>But what I want is slightly different, mainly the place is different:</p>
  
  <p><a href="https://i.stack.imgur.com/2ekGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2ekGV.png" alt="suppose to like this"></a> </p>
  
  <p>And here is my code:</p>
  
  <pre><code>def __init__(self, master):
      master.title("testing")
      self._master = master
  
      self.frame = tk.Frame(master)
      self.frame.pack()
  
      menubar=tk.Menu(master)
      master.config(menu=menubar)
      filemenu=tk.Menu(menubar)
      menubar.add_cascade(label='File', menu=filemenu)
      filemenu.add_command(label='Open', command=self.open_file)
  
      self._label=tk.Label(master,text='testing').pack()
  
      self._button=tk.Button(master,text='testing',command=self.testing).pack(side=tk.LEFT)
      self._button=tk.Button(master,text='testing',command=self.testing).pack(side=tk.LEFT)
  
      self.list = tk.Listbox(master, bg='white')
      self.list.insert(1, "testing")
      self.list.pack(side=tk.LEFT, fill = tk.BOTH)
  
      self._canvas = tk.Canvas(master, bg='white')
      self._canvas.pack(side=tk.RIGHT, fill = tk.BOTH, expand=1)
  </code></pre>