", self.do_popup)
+ lbl.pack(expand=1, ipadx=10, ipady=10)
+
+ def do_popup(self, event):
+ menu = Menu(self, tearoff=0)
+ menu.add_command(label="Option 1", command=lambda: print("Option 1"))
+ menu.add_command(label="Option 2", command=lambda: print("Option 2"))
+ menu.post(event.x_root, event.y_root)
+
+
+# Usage:
+root = App()
+root.mainloop()
+```
From ead93c6f1fcc46c3004aa8df4d470c4e735a1284 Mon Sep 17 00:00:00 2001
From: Technophile <96492656+technoph1le@users.noreply.github.com>
Date: Mon, 24 Feb 2025 02:02:07 +0200
Subject: [PATCH 4/4] Fix file name matching error
---
snippets/python/[tkinter]/entry-validation/allow-lowercase.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snippets/python/[tkinter]/entry-validation/allow-lowercase.md b/snippets/python/[tkinter]/entry-validation/allow-lowercase.md
index 3abb1fc3..c016932f 100644
--- a/snippets/python/[tkinter]/entry-validation/allow-lowercase.md
+++ b/snippets/python/[tkinter]/entry-validation/allow-lowercase.md
@@ -1,5 +1,5 @@
---
-title: Allow Lower Case
+title: Allow Lowercase
description: A validation function to allow only lowercase alphabetic characters.
author: Legopitstop
tags: validation,lowercase
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy