本文整理汇总了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
开发者ID:AxEofBone7,项目名称:sugar,代码行数:7,代码来源:listview.py
示例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
开发者ID:AxEofBone7,项目名称:sugar,代码行数:9,代码来源:activitieslist.py
示例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
开发者ID:Anubhav-J,项目名称:sugar,代码行数:9,代码来源:expandedentry.py
示例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
开发者ID:ceibal-tatu,项目名称:sugar,代码行数:10,代码来源:listview.py
示例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()
开发者ID:Anubhav-J,项目名称:sugar,代码行数:11,代码来源:listview.py
示例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
开发者ID:GhostAlgorithm,项目名称:sugar,代码行数:16,代码来源:activitieslist.py
注:本文中的sugar3.graphics.icon.CellRendererIcon类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论