免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3090 | 回复: 7
打印 上一主题 下一主题

Perl TK bind事件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-04-01 23:23 |只看该作者 |倒序浏览
如何用bind绑定控件按下回车触发事件

论坛徽章:
0
2 [报告]
发表于 2015-04-02 08:29 |只看该作者
cmd-> perldoc Tk::bind

论坛徽章:
0
3 [报告]
发表于 2015-04-02 09:30 来自手机 |只看该作者
tk窗口置顶有这项属性吗?

论坛徽章:
0
4 [报告]
发表于 2015-04-02 11:09 来自手机 |只看该作者
为什么$mw->bind("<Enter>"=>sub);这样写不会触发enter事件呢

论坛徽章:
0
5 [报告]
发表于 2015-04-02 11:53 |只看该作者
回复 4# Jack_Tan123


   是不是bind widget 才可以啊,你bind $mw?......

论坛徽章:
0
6 [报告]
发表于 2015-04-02 11:57 |只看该作者
回复 3# Jack_Tan123


你指的是不是下面的东东

The deiconify method causes the Toplevel to be displayed noniconified or deiconifies it immediately if the window has already been displayed once. If the window has been withdrawn, a $toplevel->raise( ) must also be done to display the window correctly.

If you call it with no arguments, the raise method brings the Toplevel to the front of all the other Toplevel windows in the application:

$toplevel->raise( );
You can also put the Toplevel in front of another Toplevel:

$toplevel->raise($other_toplevel);
It is sometimes necessary to use both deiconify and raise to get the window to show up on the screen.

   

论坛徽章:
0
7 [报告]
发表于 2015-04-02 15:30 来自手机 |只看该作者
不是,是窗口置顶,整个窗口在系统的最顶端

论坛徽章:
0
8 [报告]
发表于 2015-04-02 15:32 来自手机 |只看该作者
不是啊,写法冒似是那么写的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP