本文整理汇总了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()
示例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)
示例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)