Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_call_two_functions.py
- from Tkinter import *
- admin = Tk()
- def one():
- print 'one'
- def two():
- print 'two'
- def multifunction(*args):
- for function in args:
- function()
- one_and_two = lambda: multifunction(one, two)
- button = Button(admin, text='Press', command=one_and_two)
- button.pack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement