pyxbmct.addonskin

Classes for defining the appearance of PyXBMCt Windows and Controls

Classes

BaseSkin Abstract class for creating fully customized skins
Skin() Skin class
class pyxbmct.addonskin.BaseSkin[source]

Bases: object

Abstract class for creating fully customized skins

Warning

This class is meant for subclassing and cannot be instantiated directly! A sublcass must implement all the following properties.

images()[source]

Get the base directory for image files

Return type:str
x_margin()[source]

Get horizontal adjustment for the header background if the main background has transparent edges.

Return type:int
y_margin()[source]

Get vertical adjustment for the header background if the main background has transparent edges.

Return type:int
title_bar_x_shift()[source]

Get horizontal adjustment for title bar texture

Return type:int
title_bar_y_shift()[source]

Get vertical adjustment for title bar texture

Return type:int
title_back_y_shift()[source]

Get header position adjustment if the main background has visible borders.

Return type:int
header_height()[source]

Get the height of a window header (for the title background and the title label).

Return type:int
close_btn_width()[source]

Get the width of the top-right close button

Return type:int
close_btn_height()[source]

Get the height of the top-right close button

Return type:int
close_btn_x_offset()[source]

Get close button horizontal adjustment

Return type:int
close_btn_y_offset()[source]

Get close button vertical adjustment

Return type:int
header_align()[source]

Get a numeric value for header text alignment

For example:

  • 0: left
  • 6: center
Return type:int
header_text_color()[source]

Get the color of the header text

Return type:str
background_img()[source]

Get dialog background texture

Return type:str
title_background_img()[source]

Get title bar background texture

Return type:str
close_button_focus()[source]

Get close button focused texture

Return type:str
close_button_no_focus()[source]

Get close button unfocused texture

Return type:str
main_bg_img()[source]

Get fullscreen background for AddonFullWindow class

Return type:str
class pyxbmct.addonskin.Skin[source]

Bases: pyxbmct.addonskin.BaseSkin

Skin class

Defines parameters that control the appearance of PyXBMCt windows and controls.

estuary

Get or set a boolean property that defines the look of PyXBMCt elements:

  • True – use Estuary skin appearance
  • False – use Confluence skin appearance.
Return type:bool