def show(self):
u"""Window???"""
self.safe_delete_ui(RecentFileWindow._WINDOW_NAME)
cmds.window(RecentFileWindow._WINDOW_NAME, title=RecentFileWindow._WINDOW_TITLE)
cmds.frameLayout(label="RecentFiles",
marginWidth=6,
marginHeight=6,
borderStyle="etchedIn")
for file_path, file_type in get_recent_files().items():
cmds.button(label=file_path, c=partial(self._open_file, file_path, file_type))
cmds.showWindow(RecentFileWindow._WINDOW_NAME)
评论列表
文章目录