本文整理汇总了Python中sugar3.graphics.icon.CellRendererIcon类的典型用法代码示例。如果您正苦于以下问题:Python CellRendererIcon类的具体用法?Python CellRendererIcon怎么用?Python CellRendererIcon使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CellRendererIcon类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
CellRendererIcon.__init__(self)
self.props.width = style.GRID_CELL_SIZE
self.props.height = style.GRID_CELL_SIZE
self.props.size = style.STANDARD_ICON_SIZE
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
示例2: __init__
def __init__(self, favorite_view):
CellRendererIcon.__init__(self)
self.favorite_view = favorite_view
self.props.width = style.GRID_CELL_SIZE
self.props.height = style.GRID_CELL_SIZE
self.props.size = style.SMALL_ICON_SIZE
self.props.icon_name = desktop.get_favorite_icons()[favorite_view]
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
示例3: __init__
def __init__(self, tree_view):
CellRendererIcon.__init__(self, tree_view)
self.props.width = style.SMALL_ICON_SIZE
self.props.height = style.SMALL_ICON_SIZE
self.props.size = style.SMALL_ICON_SIZE
self.props.stroke_color = style.COLOR_BUTTON_GREY.get_svg()
self.props.fill_color = style.COLOR_BLACK.get_svg()
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
示例4: __init__
def __init__(self, tree_view, column_index):
CellRendererIcon.__init__(self, tree_view)
self.props.width = style.STANDARD_ICON_SIZE
self.props.height = style.STANDARD_ICON_SIZE
self.props.size = style.STANDARD_ICON_SIZE
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
self.tree_view = tree_view
self._model_column_index = column_index
示例5: __init__
def __init__(self, tree_view):
CellRendererIcon.__init__(self, tree_view)
self.props.width = style.GRID_CELL_SIZE
self.props.height = style.GRID_CELL_SIZE
self.props.size = style.SMALL_ICON_SIZE
self.props.icon_name = 'emblem-favorite'
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
prelit_color = profile.get_color()
self.props.prelit_stroke_color = prelit_color.get_stroke_color()
self.props.prelit_fill_color = prelit_color.get_fill_color()
示例6: __init__
def __init__(self, tree_view):
CellRendererIcon.__init__(self, tree_view)
self.props.width = style.GRID_CELL_SIZE
self.props.height = style.GRID_CELL_SIZE
self.props.size = style.STANDARD_ICON_SIZE
self.props.stroke_color = style.COLOR_BUTTON_GREY.get_svg()
self.props.fill_color = style.COLOR_TRANSPARENT.get_svg()
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
client = GConf.Client.get_default()
prelit_color = XoColor(client.get_string("/desktop/sugar/user/color"))
self.props.prelit_stroke_color = prelit_color.get_stroke_color()
self.props.prelit_fill_color = prelit_color.get_fill_color()
self._tree_view = tree_view