set_window_attrset_window_attrSetWindowAttrSetWindowAttrset_window_attr (算子)
名称
set_window_attrset_window_attrSetWindowAttrSetWindowAttrset_window_attr — 设置窗口特征。
签名
描述
You may use set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr to set specific characteristics
of graphics windows. With it you may modify the following default
parameters of a window:
- 'border_width'
Width of the window border in pixels.
Is not implemented under Windows.
- 'border_color'
Color of the window border.
Is not implemented under Windows.
- 'background_color'
Background color of the window.
- 'window_title'
Name of the window in the title bar.
注意
You have to call set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr before
calling open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
AttributeNameAttributeNameAttributeNameAttributeNameattributeNameattribute_name (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the attribute that should be modified.
值列表:
'background_color'"background_color""background_color""background_color""background_color""background_color", 'border_color'"border_color""border_color""border_color""border_color""border_color", 'border_width'"border_width""border_width""border_width""border_width""border_width", 'window_title'"window_title""window_title""window_title""window_title""window_title"
AttributeValueAttributeValueAttributeValueAttributeValueattributeValueattribute_value (输入控制) string → HTupleUnion[str, int]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)
Value of the attribute that should be set.
值列表:
0, 1, 2, 'MyName'"MyName""MyName""MyName""MyName""MyName", 'black'"black""black""black""black""black", 'default'"default""default""default""default""default", 'white'"white""white""white""white""white"
结果
If the parameters are correct set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
另见
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr,
set_window_paramset_window_paramSetWindowParamSetWindowParamSetWindowParamset_window_param
模块
基础