Python论坛  - 讨论区

标题:[python-chinese] 关于Tkinter Frame 配件的一点迷惑

2006年03月20日 星期一 14:31

=?ISO-2022-JP?B?GyRCcjJDaRsoQg==?= weizhong2004 at gmail.com
Mon Mar 20 14:31:38 HKT 2006

Frame是一个类,用于生成自身的一个实例,可是在下面的代码片段中(来自python编程金典)高亮的一行里,
Frame的参数是自身的一个实例,这该如何理解呢?

class CheckFont( Frame ):
   """An area of text with Checkbutton controlled font"""

   def __init__( self ):
      """Create an Entry and two Checkbuttons"""
      Frame.__init__( self )
      self.pack( expand = YES, fill = BOTH )
      self.master.title( "Checkbutton Demo" )

      self.frame1 = Frame( self )
      self.frame1.pack()

--
开飞机的舒克
http://www.lvye.org/shuke
msn:weizhong at netease.com
my-tag:IM我也在用.但一般只对熟悉的人开.这东西太占时间.相比还是maillist好.让自已思考,让别人思考,让更多人参与.--limodou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060320/c91c1201/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号