fix
1 parent 3a85047 commit 5b9bc931290734b068e443d93cd5c0aafeade5bb
@koki koki authored on 18 Oct 2022
Showing 4 changed files
View
mylib/__pycache__/application.cpython-38.pyc
Not supported
View
mylib/__pycache__/mapdisp.cpython-38.pyc
Not supported
View
mylib/__pycache__/tools.cpython-38.pyc
Not supported
View
2
■■■
mylib/application.py
self.file_menu.add_command(label="Export", command=self.menu_export, accelerator="Ctrl+E")
self.file_menu.add_separator()
self.file_menu.add_command(label="Exit", command=self.menu_exit, accelerator="Ctrl+Q")
## キーボードショートカットを設定
self.bind_all("<Control-s>", self.menu_save)
self.bind_all("<Control-Shift-S>", self.menu_saveas)
self.bind_all("<Control-e>", self.menu_export)
self.bind_all("<Control-q>", self.menu_exit)
## 大元に作成したメニューバーを設定
self.menu_bar.add_cascade(label=" File ", menu=self.file_menu) # Fileメニューとしてバーに追加