⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 projsel.sns

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 SNS
字号:
# This scenario will create some files and then load# them into a new project file. After the project# has been created, it will be closed and then# opened again. Then it will be deleted and# the script will exit SN.file delete -force /tmp/foofile mkdir /tmp/foowritefile /tmp/foo/f1.c {int func1(int i) { return 0; }}writefile /tmp/foo/f2.c {int func2(int i) { return func1(0); }}set top [next_toplevel]set new $top.btns.newasync mouse_click $newset top [next_toplevel]set prjname_leb $top.dirs.prjname$prjname_leb configure -value /tmp/foo/foo.projset prjdir_leb $top.dirs.dir-1$prjdir_leb configure -value /tmp/foo# Press the Ok buttonset ok $top.button0async mouse_click $ok# Wait for the next window (Symbol Browser)# to show up, and then close itset top [next_toplevel]close_toplevel $top# Open the project we just created up again, select# it from the list by matching the nameset top [next_toplevel]set lb $top.scrolllistbox.projslistbox_select_entry_pattern $lb *foo*set open $top.btns.openmouse_click $open# Once the project had been opened, close itset top [next_toplevel]close_toplevel $top# We should be back at the project selector!# Delete the project, it should be selected# at this point, so hit the delete button.set top [next_toplevel]set delete $top.btns.deleteasync mouse_click $delete# Hit the Ok button in the confirm dialog.set okd [next_toplevel]set ok $okd.button_0mouse_click $ok# Hit the "Cancel" button, this should exit SNset exit $top.btns.exitasync close_toplevel $exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -