Use lambda as action command : Action : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Action »

 

Use lambda as action command


Use lambda as action command
from Tkinter import *
from sys import stdout, exit                 

widget = Button(None,text='Hello event world', 
             command=(lambda: stdout.write('lambda worldn') or exit()) )

widget.pack()
widget.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Action