title: Running a function which is binded to a widget in python tkinter
body: <pre><code>import tkinter 
  from tkinter import *
  def printword(event):
      print(&quot;hello&quot;)
  
  app = Tk()
  
  textpane = tkinter.Text(app)
  textpane.bind('&lt;Control-Key-s&gt;',printword)
  textpane.pack()
  
  printword()
  
  app.mainloop()
  </code></pre>
  <p>When i run the code it gives me typeerror</p>
  <pre><code>TypeError: printword() missing 1 required positional argument: 'event'
  </code></pre>
  <p>how would I fix this ?</p>