Skip to content

AttributeError: 'BindGlobal' object has no attribute 'bind' #1

@cloudeweb

Description

@cloudeweb

Hello I'm trying to use it with Tkinter but get 'AttributeError: 'BindGlobal' object has no attribute 'bind''
how can I fix it ? thanks

import tkinter as tk
from tkinter import messagebox
from bindglobal import BindGlobal

def call_me(event=""):
    messagebox.showinfo("Message","My Message")
    
root  = tk.Tk()
bg = BindGlobal(widget=root)
bg.bind("<Control-Shift-A>", call_me)

button = tk.Button(root, text="call me", command = call_me)

button.pack()

root.geometry("300x300")

root.mainloop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions