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


Python Zoomable.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from zoominterface import Zoomable [as 别名]
# 或者: from zoominterface.Zoomable import __init__ [as 别名]
    def __init__(self, element, composition, timeline):
        goocanvas.Group.__init__(self)
        View.__init__(self)
        Zoomable.__init__(self)

        self.element = element
        self.comp = composition
        self.timeline = timeline

        self.bg = goocanvas.Rect(
            height=self.__HEIGHT__, 
            fill_color_rgba=self.__NORMAL__,
            line_width=0)

        self.content = Preview(self.element)
        self.name = goocanvas.Text(
            x=10,
            text=os.path.basename(unquote(element.factory.name)),
            font="Sans 9",
            fill_color_rgba=0x000000FF,
            alignment=pango.ALIGN_LEFT)
 
        self.start_handle = StartHandle(element, timeline,
            height=self.__HEIGHT__)
        self.end_handle = EndHandle(element, timeline,
            height=self.__HEIGHT__)

        for thing in (self.bg, self.content, self.start_handle, self.end_handle, self.name):
            self.add_child(thing)

        if element:
            self.zoomChanged()
        self.normal()
开发者ID:emdash,项目名称:gst-editor,代码行数:35,代码来源:timelineobject.py

示例2: __init__

# 需要导入模块: from zoominterface import Zoomable [as 别名]
# 或者: from zoominterface.Zoomable import __init__ [as 别名]
 def __init__(self, instance, element, timeline, **kwargs):
     self.app = instance
     self.element = element
     self.timeline = timeline
     goocanvas.Image.__init__(self,
         pixbuf = TRIMBAR_PIXBUF,
         line_width=0,
         pointer_events=goocanvas.EVENTS_FILL,
         **kwargs
     )
     View.__init__(self)
     Zoomable.__init__(self)
开发者ID:Mathieu69,项目名称:Pitivi_Gargamel,代码行数:14,代码来源:trackobject.py

示例3: __init__

# 需要导入模块: from zoominterface import Zoomable [as 别名]
# 或者: from zoominterface.Zoomable import __init__ [as 别名]
    def __init__(self, instance, ui_manager):
        gtk.Table.__init__(self, rows=2, columns=1, homogeneous=False)
        Loggable.__init__(self)
        Zoomable.__init__(self)
        self.log("Creating Timeline")

        self._updateZoom = True
        self.project = None
        self.ui_manager = ui_manager
        self.app = instance
        self._temp_objects = None
        self._factories = None
        self._finish_drag = False
        self._position = 0
        self._state = gst.STATE_NULL
        self._createUI()
        self._prev_duration = 0
        self.rate = gst.Fraction(1, 1)
开发者ID:dparker18,项目名称:Pitivi,代码行数:20,代码来源:timeline.py


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