# To create a feature of description of the notepad Self._thisMenuBar.add_cascade(label="Edit", menu=self._thisEditMenu) Self._thisEditMenu.add_command(label="Paste", Self._thisEditMenu.add_command(label="Copy", Self._thisEditMenu.add_command(label="Cut", Self._thisMenuBar.add_cascade(label="File", menu=self._thisFileMenu) Self._thisFileMenu.add_command(label="Exit", Self._thisFileMenu.add_command(label="Save", ![]() Self._thisFileMenu.add_command(label="New", We are going to give these many menu-item & subitem by using below code − # To open new file Our commands menu item will have one subitem – About commands,Īnd our help menu will have one subitem- About notepad ![]() Our edit menu item will have three sub-items- cut, copy & paste Our file menu item will have four sub-items- New, Open, Save & Exit. Our notepad will have four main menu items: File, Edit, Commands & Help. Note: tkinter comes as a standard library with python 3.x. ![]() This notepad will have the menu where we can create new file, open existing file, save the file, editing, cut and paste, all functionality will there. Here, using tkinter we will develop a notepad like text editor. Tkinter is a GUI library from python from which we can create multiple GUI apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |