예제 #1
0
    def create_file_list_popmenu(self):
        fs_popmenu = Menu(self._wm['top'], tearoff=0)
        fs_popmenu.add_command(command=self.on_popmenu_fs_open,
                               label='%s' % LANG_MAP[self._lang]['Open'])
        # bind leave event
        fs_popmenu.bind("<Leave>", self.on_popmenu_fs_leave)

        self._wm['fs_popmenu'] = fs_popmenu
예제 #2
0
    def create_path_popmenu(self):
        path_popmenu = Menu(self._wm['top'], tearoff=0)
        path_popmenu.add_command(command=self.on_popmenu_path_copy,
                                 label='%s' % LANG_MAP[self._lang]['Copy'])
        path_popmenu.add_command(command=self.on_popmenu_path_paste,
                                 label='%s' % LANG_MAP[self._lang]['Paste'])
        # bind leave event
        path_popmenu.bind("<Leave>", self.on_popmenu_path_leave)

        self._wm['path_popmenu'] = path_popmenu