导航:首页 > 文件处理 > 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文件夹相关的资料

热点内容
单片机与汽车单片机有何不同 浏览:943
兽医云平台服务器 浏览:296
php循环字母 浏览:638
盛达是什么APP 浏览:198
android计算屏幕高度 浏览:652
自己做红包解压球 浏览:474
pdf很贵吗 浏览:495
如何抢购腾讯云服务器 浏览:389
电子书app源码 浏览:871
程序员在上班的时候 浏览:405
游戏压缩文件夹怎么删除 浏览:421
百度新闻app是什么 浏览:890
自动化对初级编程的影响 浏览:108
单片机综合课程设计 浏览:603
程序员小严 浏览:813
如何下载欢乐走app 浏览:441
程序员节公司请美女 浏览:17
三本程序员好吗 浏览:23
la78040场幅压缩 浏览:903
MFC经典游戏编程 浏览:790