导航:首页 > 文件处理 > tcltk文件夹

tcltk文件夹

发布时间:2022-10-11 02:40:16

Ⅰ 如何解决Mac版关于python3.5.X的Tcl/Tk 的警告

ActiveTcl Downloads

从这里下载Tcl试试

下载8.6.4版本还会报错,我又试着装了下8.5.18,重启IDLE便没有提示不稳定了。

而且,也可以打印中文了:

<img src="https://pic2.mg.com/50/_hd.png" data-rawwidth="697" data-rawheight="755" class="origin_image zh-lightbox-thumb" width="697" data-original="https://pic2.mg.com/_r.png">

原因如下(google而来):

Stan W writes (NB. edited for brevity):

Over the last couple of days I have started using your great book with my two sons (13 and 15 years old).I'm reaching out to you with the following question because I have noticed other people asking about the same issue online, withat least one mentioning your book, so I think you posting the question and answer to your blog might help other people in additionto me and my sons.

We are using Mac OSX and have installed Python 3.3.3 from python.org, and are getting this message when opening IDLE:

"WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit IDLE and tkinter with Tcl/Tk on Mac OS X forcurrent information."

I have installed "Mac OS X 64-bit/32-bit Installer (3.3.3) for Mac OS X 10.6 and later" (file: python-3.3.3-macosx10.6.dmg) andinstalled the "ActiveTcl 8.6.1 for Mac OS X (10.5+, x8664/x86)" (file: ActiveTcl8.6.1.1.297588-macosx10.5-i386-x8664-threaded),but IDLE keeps showing the same error message.

Thank you very much for any help you can provide!

I'm not convinced ActiveTcl 8.6.1 is the right version to install - I suspect rather than installing the latest and greatest, you should be using version 8.5.15.0. Python (and thus IDLE) will probably be using the latest 8.5 version of Tcl/Tk (i.e. 8.5.x) — you're installing a completely different version (8.6), which it's not looking for at all. Hence even though you think you've re-installed, you'll still be getting the same error message.

Hope that helps.

Ⅱ 现在用的一款软件时tcl/tk和c++写的,但我修改了.cc文件后,整个软件不受影响,

可执行程序的运行与代码没有关系,代码修改后只有重新编译生成可执行程序,修改的内容才会生效!

Ⅲ 怎么在linux上安装tcl tk

tcl

[user@localhost 桌面]$ ls tcl8.5.9-src.tar.gz
tcl8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tcl8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tcl8.5.9-src.tar.gz
[root@localhost src]# cd tcl8.5.9/
[root@localhost tcl8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tcl/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tcl/bin/tclsh8.5
% exit
[root@localhost unix]#

tk

[user@localhost 桌面]$ ls tk8.5.9-src.tar.gz
tk8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tk8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tk8.5.9-src.tar.gz
[root@localhost src]# cd tk8.5.9/
[root@localhost tk8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tk/ --with-tcl=/usr/local/tcl/lib/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tk/bin/wish8.5
/usr/local/tk/bin/wish8.5: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
[root@localhost unix]# ln -s /usr/local/tcl/lib/libtcl8.5.so /usr/local/tk/lib/libtcl8.5.so
[root@localhost unix]# /usr/local/tk/bin/wish8.5
% exit
[root@localhost unix]#

Ⅳ tcl语言文件夹里文件移动到另一个文件夹

~/tcltk$ tclsh

% file exists hello3.tcl

1

% file executable testit

0

% file pathtype ./hello3.tcl

relative

% set dir1 home

home

% set dir2 brian

brian

% set dir3 tcltk

tcltk

% file join /$dir1 dir2 dir3

/home/dir2/dir3

% file delete testit~

%

文件和路径操作是跨平台环境中具有挑战性的问题。对于主机 OS,Tcl 使用 UNIX

路径名(缺省情况下,用‘/’字符分隔)和本机路径名结构。即使当程序内的数据构造正确时,也很难确保用户输入与系统需求匹配。file

join 命令用于将 UNIX 格式转换成本机路径名。其它路径字符串命令包括 file split、dirname、file

extension、nativename、pathtype 和 tail。

在它扮演的“工具控制语言”角色中,Tcl 有许许多多种内部文件测试和操作功能。每条命令都以 file 开始,正如 file

exists name 中一样。其它测试命令(它们都返回布尔值)包括

executable、isdirectory、isfile、owned、readable 和 writable。

文件信息和操作(再提醒您一次,所有都是以 file 开始)是通过

atime、attributes、、delete、lstat、mkdir、mtime、readlink、rename、rootname、

size、stat 和 type 来完成。请注意,在 Windows 或 Mac

环境中运行一些文件信息命令时,可能会返回未定义的数据,因为例如在那些文件系统中没有表示索引节点和符号(和硬)链接数据。

使用 file ... 命令而不使用通过 exec 的本机命令的好处在于,前者会提供一个可移植接口

阅读全文

与tcltk文件夹相关的资料

热点内容
程序员掉入能力陷阱 浏览:671
中百超市多点app如何充值 浏览:331
仙剑奇侠传4codex未加密 浏览:194
如何搭建服务器ss端口 浏览:56
国外代理服务器地址服务器端口密码 浏览:754
phpthrownew 浏览:681
java从入门到精通pdf百度云 浏览:55
linuxhdf5安装 浏览:469
java继承编程练习题 浏览:652
云记app怎么写字视频 浏览:598
如何进入我的世界脏小豆的服务器 浏览:42
哪里找到转转app 浏览:580
苹果二次app怎么注册 浏览:587
国际服体验服服务器为什么爆满 浏览:114
微信商城模板源码 浏览:436
网页的源码怎么读取 浏览:402
ubuntu命令打开软件 浏览:761
如何实现对讲频道加密 浏览:351
福州8000的程序员去深圳多少 浏览:645
保存加密是什么意思 浏览:43