| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> perl >> Perl/TkFAQ-9.Perl/Tk中有哪些类型的组件 Perl/TkFAQ-9.Perl/Tk zhong you na xie lei xing de zu jian
 

Perl/TkFAQ-9.Perl/Tk中有哪些类型的组件

2008-05-18 21:55:25 编辑來源:互联网 繁體版 评论
 
 
本文为【Perl/TkFAQ-9.Perl/Tk中有哪些类型的组件】的汉字拼音对照版显示拼音
  yuanwen

  9. What widget types are available under perl/Tk?

  The following Tk widget primitives are available under perl/Tk:

  Button

  Canvas

  Checkbutton

  Entry

  Frame

  Label

  Listbox

  Menu

  Menubutton

  Message

  Radiobutton

  Scale

  Scrollbar

  Text

  Toplevel

  The following are Tix widget primitives available under perl/Tk:

  HList

  InputOnly

  There are (a lot of) other [compound|composite|constructs] available too. You can also synthesize new widgets out of these primitives using perl5's object-oriented multiple inheritance features. You can even build entirely new widget primitives from raw C (XS) code then use and re-use that. (Perl 5 is extremely configurable.)

  A good introduction to the primitives and how they may be used in conjunction with each other may be found in the widget demo script. Note that all the widget demos have a "Show Code" button. To help figure out what is happening in the script you may, when the window appears, edit the text and instrument the code with print statements and then simply press "Rerun Demo". Another place to see examples of the primitives (on the web) is at the image supplement to this FAQ at the following URL:

  http://www.perltk.org/contrib/ptkIMG.html

  yiwen

  9. Perl/Tkzhongyounaxieleixingdezujian

  Perl/Tkzhongdejibenzujianbaokuoyixialeixing

  l Button

  l Canvas

  l Checkbutton

  l Entry

  l Frame

  l Label

  l Listbox

  l Menu

  l Menubutton

  l Message

  l Radiobutton

  l Scale

  l Scrollbar

  l Text

  l Toplevel

  lingwaihuanyoujizhongfuhedezujian

  l Hlist

  l InputOnly

  yizhezhuchuxueTkdepengyouyaolejieyishangzujiandewaiguankeyikanzhelihttp://www.perlchina.net/cgi-bin/gforum/gforum.cgi?post=4628#4628

  tongshihuanyouhenduoqitadehunhedefuhedehuoxingoujiandebingqieliyongPerl5mianxiangduixiangbianchengdekeyichuanxingzhiniwanquankeyizijiyongzhexiejibendezujiangoujianchuxindezonghezujianshenzhinihuankeyi使shiyongyuanshiCyuyandaimagoujianchuquanxindezujianranhouchongfude使shiyongtaPerl5shijuyoujiqiangdekesuxingde

  qishizujiandeyanshijiaobenyizhezhuzaiminglingxingzhongjianruwidgetjiushiduizhexiejibenzujiandeyongfayijitamenruhelianhe使shiyongdengwentidehenhaodejieshaoshuomingqingzhuyisuoyoudezujianyanshichengxudouyouyigeShow CodexianshidaimadeanniunikeyizaiyueduletamendeyuanshidaimayihouzainagechuangkouzhongzhijiexiugaibingqiezhiyaojiandandezaidianjiyixiaRerun Demodeanniujiukeyilikekandaonixiugaihoudexiaoguole原文】【拼音
 
 
 
 
上一篇《Perl/TkFAQ-8.如何写Perl/Tk脚本》
下一篇《Perl/TkFAQ-10.如何使用某个组件来完成某个工作》
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
  原文:   9. What widget types are available under perl/Tk?   The following Tk widget primitives are available under perl/Tk:   Button   Canvas   Checkbutton   Entry   Frame   Label   Listbox   Menu   Menubutton   Message   Radiobutton   Scale   Scrollbar   Text   Toplevel   The following are Tix widget primitives available under perl/Tk:   HList   InputOnly   There are (a lot of) other [compound|composite|constructs] available too. You can also synthesize new widgets out of these primitives using perl5's object-oriented multiple inheritance features. You can even build entirely new widget primitives from raw C (XS) code then use and re-use that. (Perl 5 is extremely configurable.)   A good introduction to the primitives and how they may be used in conjunction with each other may be found in the widget demo script. Note that all the widget demos have a "Show Code" button. To help figure out what is happening in the script you may, when the window appears, edit the text and instrument the code with print statements and then simply press "Rerun Demo". Another place to see examples of the primitives (on the web) is at the image supplement to this FAQ at the following URL:   http://www.perltk.org/contrib/ptkIMG.html   译文:   9. Perl/Tk中有哪些类型的组件?   Perl/Tk中的基本组件包括以下类型:   l Button   l Canvas   l Checkbutton   l Entry   l Frame   l Label   l Listbox   l Menu   l Menubutton   l Message   l Radiobutton   l Scale   l Scrollbar   l Text   l Toplevel   另外,还有几种复合的组件   l Hlist   l InputOnly   (译者注:初学Tk的朋友要了解以上组件的外观,可以看这里:http://www.perlchina.net/cgi-bin/gforum/gforum.cgi?post=4628#4628)   同时,还有很多其它的(混合的,复合的或新构建的)。并且,利用Perl5面向对象编程的可遗传性质,你完全可以自己用这些基本的组件构建出新的综合组件。甚至,你还可以使用原始C语言代码构建出全新的组件,然后重复的使用它(Perl5是具有极强的可塑性的)。   其实,组件的演示脚本(译者注:在命令行中键入widget)就是对这些基本组件的用法、以及它们如何联合使用等问题的很好的介绍说明。请注意,所有的组件演示程序都有一个“Show Code”(显示代码)的按钮。你可以在阅读了它们的原始代码以后,在那个窗口中直接修改,并且只要简单的再点击一下“Rerun Demo”的按钮就可以立刻看到你修改后的效果了。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
时尚秀气模特裴裴(8)
时尚秀气模特裴裴(7)
时尚秀气模特裴裴(6)
时尚秀气模特裴裴(5)
白墙黑瓦
广州东郊[原创]
八美至丹巴的东谷天然盆景
不一样的
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
©2005- 王朝网络 版权所有