hildon.GridItem

hildon.GridItem is intended to be used with hildon.Grid.

Description

hildon.GridItem is an uninteractive widget representing item on hildon.Grid. Each item has an icon and a label. Depending on current style, icon can be either above or to the left of the label.

Ancestry

Up to the first non-hildon ancestor:

...
 +-- gtk.Container
      +-- hildon.GridItem

Usage Example

import gtk
import hildon

window = hildon.Window()
window.set_title("Test App")

grid = hildon.Grid()

grid_item = hildon.GridItem("Calculator")
grid.add(grid_item)

grid_item = hildon.GridItem("Calendar", "A simple calendar")
grid.add(grid_item)

window.add(grid)

window.show_all()

gtk.main()
      

Properties

Name Access Description
"emblem-type" Write The emblem's basename.
"icon-basename" Write The icon's basename.

Constructor

Creates a new hildon.GridItem widget.

hildon.GridItem(icon_basename, label)
icon_basename Icon base name.
label (optional) Text label for icon.
Returns A new hildon.GridItem.

Methods

get_emblem_type

Returns emblem's basename.

hildon.GridItem.get_emblem_type()
Returns Emblem's basename.

set_emblem_type

Sets item emblem type.

hildon.GridItem.set_emblem_type(emblem_basename)
emblem_basename Emblem's basename.


Improve this page