TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.21k stars 1.06k forks source link

there is no menu i can not find it #820

Open youssef122312 opened 1 year ago

youssef122312 commented 1 year ago

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
TomSchimansky commented 1 year ago

What do you mean by it is not working?

0xHouss commented 1 year ago

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

youssef122312 commented 1 year ago

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

youssef122312 commented 1 year ago

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