2006年03月20日 星期一 14:31
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
Zeuux © 2025
京ICP备05028076号