From ee9f080d995a3062a844f5ebbc89356859a223e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziej?= Date: Tue, 11 Jun 2019 14:44:57 +0200 Subject: [PATCH] disable tearOff --- contextmenu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contextmenu.py b/contextmenu.py index 4051a49..ecd54d9 100644 --- a/contextmenu.py +++ b/contextmenu.py @@ -1,5 +1,6 @@ from tkinter import * root = Tk() +root.option_add('*tearOff', FALSE) menu = Menu(root) for i in ('One', 'Two', 'Three'): menu.add_command(label=i)