CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

there is no menu i can not find it

Open youssef122312 opened this issue 3 years ago โ€ข 4 comments

i have to use tkinter menu farthermore it is not warking

        self.menu = Menu(master=root, tearoff=False)
        self.menu.add_command(label="Copy", command=self.copy)
        self.menu.add_command(label="Paste", command=self.paste)
        self.menu.add_command(label="Cut", command=self.cut)
        self.menu.add_separator()
        self.menu.add_command(label="Select all", command=self.select_all)
        self.menu.add_separator()
        self.menu.add_command(label="About", command=self.about)
        root.bind("<Button - 3>", self.mypopup)
    
    def mypopup(self, e):
        self.menu.tk_popup(e.x_root, e.y_root)
    
    def copy(self):
        self.ent.event_generate("<<Copy>>")
    
    def paste(self):
        self.ent.event_generate("<<Paste>>")
    
    def cut(self):
        self.ent.event_generate("<<Cut>>")
        
    def select_all(self):
        self.ent.event_generate("<<SelectAll>>")
    
    def about(self):
        pass

youssef122312 avatar Dec 10 '22 09:12 youssef122312

What do you mean by it is not working?

TomSchimansky avatar Dec 10 '22 12:12 TomSchimansky

i have to use tkinter menu farthermore it is not working

yeah i've researched and the Menu widget isn't implemented in the customtkinter and some others widgets too

0xHouss avatar Dec 10 '22 17:12 0xHouss

it is not working because it is not exist๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

youssef122312 avatar Dec 15 '22 15:12 youssef122312

i used tkinter menu but the it does not have any functionality i used for copy pyautogui.hotkey("ctrl", "c") i will put my whole code in my repository

youssef122312 avatar Dec 15 '22 16:12 youssef122312