Frame (hwx.gui)#
- class Frame(flags=0, **kwds)#
Bases:
WidgetGeneric Widget container.
Base class for VFrame, HFrame and GridFrame, IconLabel, CollapsibleFrame, ComboButtonsWidgetStack and RadioButtonsWithWidgets.
Attribute Table# Name
Type
propertyMethod Table# Name
Description
resize(self, width, height)Resize the frame to the specified width and height.
setBackgroundImage(self, image)Sets the background image of the frame.
useUnityStyle(self, value)Sets the frame style to Unity style.
- property frameShape#
Returns frame shape from the frame style. Below are the valid frame shape: - NOFRAME - BOX - PANEL - WINPANEL - HLINE - VLINE - STYLEDPANEL
- useUnityStyle(value)#
Sets the frame style to Unity style.
- Parameters:
value (bool) – True to use Unity style, False to use default style.
- setBackgroundImage(image)#
Sets the background image of the frame.
- Parameters:
image (str) – The file name or absolute path of the image to set as background.
- resize(width, height)#
Resize the frame to the specified width and height.
- Parameters:
width (int) – The new width of the frame.
height (int) – The new height of the frame.