title: Is there any way to open git-bash and send commands in Python?
body: <pre><code>from tkinter import *
  import os
  
  
  pencere = Tk()
  pencere.title(&quot;Hello&quot;)
  pencere.geometry(&quot;550x550&quot;)
  label1 = Label(text=&quot;Hallo&quot;,font=&quot;bold 25&quot;)
  label1.place(x=150,y=30)
  
  label2 = Label(text=&quot;Command&quot;)
  label2.place(x=5,y=90)
  
  label3 = Entry(width=50)
  label3.place(x=50,y=90)
  
  def gitbash():
      os.startfile('C:\\Program Files\\Git\\git-bash.exe')
  
  ac = Button(text=&quot;Olustur&quot;,width=10,height=3,command = cmd)
  ac.place(x=100,y=150)
  
  
  pencere = mainloop()
  </code></pre>
  <p>I want to send commands to GitBash from gitbash function. For example I want to send &quot;ls&quot; command, when I open Button, GitBash should be opened and ls command will be sent.</p>