Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from Tkinter import *
- from _classButtonTest_ import *
- def b1(event):
- pass
- def b3(event):
- root.title("Правая кнопка мыши")
- pass
- root = Tk()
- root.title('TEST')
- meny = Menu(root)
- root.config(menu = meny)
- root.minsize(width = 500, height=400)
- filemenu = Menu(meny, tearoff=0)
- filemenu.add_command(label="open")
- filemenu.add_command(label="save")
- filemenu.add_command(label="output",command=root.quit)
- root.bind('<Button-1>',b1)
- root.bind('<Button-3>',b3)
- meny.add_cascade(label="file", menu=filemenu)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement