[Tutor] tkinter and menu

Aadish Shrestha lists@shrestha.net.np
16 Oct 2002 15:12:19 +0545


I'm starting Python and Tkinter and need some help. I've created a menu
widget and did the following

menu.add_comman(label="ok", command=help)

This works fine, but i've modified my callback function help so that
depending upon the paramter it displays help on given paramter.

def help(topic):
  """ depending upont topic display help"""
  statements
      ..
  statements
     
My question is how do i pass parameter to callback function help() ??
doing .add_command(label="ok", command=help("about")) doesn't work.