摘要: usual declaration for the standard Tk button widget: usual Button { keep -background -cursor -foreground -font keep -activebackground -activeforeground -disabledforeground keep -highlightcolor -highlightthickness rename -highlightbackground -background background Background}Only the options that wou 阅读全文
posted @ 2011-06-13 23:18 greencolor 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Option name.Xdefault's nameClass nameDefault valueCurrent value-background background Background #d9d9d9 #d9d9d9 -bd borderWidth -bg background -borderwidth borderWidth BorderWidth 0 0 -class class Class Toplevel Toplevel -colormap colormap Colormap undef -container container Container 0 0 -curs 阅读全文
posted @ 2011-06-13 22:41 greencolor 阅读(130) 评论(0) 推荐(0) 编辑
摘要: CanvasOption name.Xdefault's nameClass nameDefault valueCurrent value-activegroup activeGroup ActiveGroup 0 undef -background background Background #d9d9d9 #d9d9d9 -bd borderWidth -bg background -borderwidth borderWidth BorderWidth 0 0 -closeenough closeEnough CloseEnough 1 1 -confine confine Co 阅读全文
posted @ 2011-06-13 22:31 greencolor 阅读(184) 评论(0) 推荐(0) 编辑
摘要: The following is a comprehensive list of options for Labels:-anchor => 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'center' Causes the text to stick to that position in the Label widget. This won't be obvious unle 阅读全文
posted @ 2011-06-13 22:11 greencolor 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Options used with the Text method change the way the text is displayed within the Text widget. The following options are standard for all the widgets-background => color Changes the color of the screen displayed behind the text. Sets the width of the edges of the widget. Sets the cursor displayed 阅读全文
posted @ 2011-06-13 22:08 greencolor 阅读(199) 评论(0) 推荐(0) 编辑
摘要: itk_option add optName ?optName optName ...? Adds one or more options to the composite option list for a mega-widget. Here, optName can have one of the following forms: component.option Accesses an option belonging to a component with the symbolic name component. The option name is specified without 阅读全文
posted @ 2011-06-13 21:57 greencolor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: TK OPTIONSThese options can be set at widget creation or changed later via configure.Name: activeBackground Class: Foreground Switch: -activebackground Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positi 阅读全文
posted @ 2011-06-13 21:23 greencolor 阅读(200) 评论(0) 推荐(0) 编辑
摘要: -activebackground => color Sets the color the background should be when the mouse cursor is over the Button. A color is a text string such as "red". -activeforeground => color Sets the color the text should be when the mouse cursor is over the Button. -anchor => 'n' | ' 阅读全文
posted @ 2011-06-13 20:26 greencolor 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Some Common Widget OptionsThe capitalized word must be replaced with any of the bold words. Check the manual for all the options. Also make sure that the widget you are using support the option you are using.-anchor POSITIONPosition widget relative to: n ne nw s se sw e w or center.-background COLOR 阅读全文
posted @ 2011-06-13 12:32 greencolor 阅读(326) 评论(0) 推荐(0) 编辑