当前位置: 首页>>代码示例>>Python>>正文


Python CellRendererIcon.__init__方法代码示例

本文整理汇总了Python中sugar3.graphics.icon.CellRendererIcon.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CellRendererIcon.__init__方法的具体用法?Python CellRendererIcon.__init__怎么用?Python CellRendererIcon.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sugar3.graphics.icon.CellRendererIcon的用法示例。


在下文中一共展示了CellRendererIcon.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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
开发者ID:AxEofBone7,项目名称:sugar,代码行数:9,代码来源:listview.py

示例2: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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
开发者ID:AxEofBone7,项目名称:sugar,代码行数:11,代码来源:activitieslist.py

示例3: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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
开发者ID:Anubhav-J,项目名称:sugar,代码行数:11,代码来源:expandedentry.py

示例4: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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
开发者ID:ceibal-tatu,项目名称:sugar,代码行数:12,代码来源:listview.py

示例5: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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()
开发者ID:Anubhav-J,项目名称:sugar,代码行数:13,代码来源:listview.py

示例6: __init__

# 需要导入模块: from sugar3.graphics.icon import CellRendererIcon [as 别名]
# 或者: from sugar3.graphics.icon.CellRendererIcon import __init__ [as 别名]
    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
开发者ID:GhostAlgorithm,项目名称:sugar,代码行数:18,代码来源:activitieslist.py


注:本文中的sugar3.graphics.icon.CellRendererIcon.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。