本文整理汇总了Python中mojo.events.removeObserver函数的典型用法代码示例。如果您正苦于以下问题:Python removeObserver函数的具体用法?Python removeObserver怎么用?Python removeObserver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了removeObserver函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: windowCloseCallback
def windowCloseCallback(self, sender):
# notification when the window get closed
# remove the view did change glyph in the glyph view observer
removeObserver(self, "viewDidChangeGlyph")
# unsubscribe the glyph
self.unsubscribeGlyph()
super(StencilPreview, self).windowCloseCallback(sender)
示例2: windowCloseCallback
def windowCloseCallback(self, sender):
removeObserver(self, "draw")
removeObserver(self, "drawInactive")
#removeObserver(self, "currentGlyphChanged")
setExtensionDefault("%s.%s" % (extensionID, "method"), self.w.eqMethodSelector.get())
setExtensionDefault("%s.%s" % (extensionID, "curvature"), self.w.eqCurvatureSelector.get())
setExtensionDefault("%s.%s" % (extensionID, "curvatureFree"), self.w.eqCurvatureSlider.get())
setExtensionDefault("%s.%s" % (extensionID, "tension"), self.w.eqHobbyTensionSlider.get())
super(CurveEqualizer, self).windowCloseCallback(sender)
UpdateCurrentGlyphView()
示例3: startStopButtonCallback
def startStopButtonCallback(self, sender):
# button callback, check the title
if sender.getTitle() == "Start":
# set "Stop" as title for the button
sender.setTitle("Stop")
# add an observer
addObserver(self, "draw", "draw")
else:
# set "Start" as title for the button
sender.setTitle("Start")
# remove the observser
removeObserver(self, "draw")
示例4: windowClose
def windowClose(self, notification):
self.w.unbind('close', self.windowClose)
self.w.unbind('resize', self.windowResize)
removeObserver(self, "currentGlyphChanged")
removeObserver(self, "mouseUp")
removeObserver(self, "keyUp")
removeObserver(self, "fontDidClose")
示例5: windowCloseCallback
def windowCloseCallback(self, sender):
removeObserver(self, "fontDidOpen")
removeObserver(self, "fontWillClose")
removeObserver(self, "drawInactive")
removeObserver(self, "draw")
self.updateView()
super(OverlayUFOs, self).windowCloseCallback(sender)
示例6: windowCloseCallback
def windowCloseCallback(self, sender):
# when the windows closes remove all the added observers
removeObserver(self, "drawBackground")
removeObserver(self,"drawInactive")
removeObserver(self, "fontBecameCurrent")
removeObserver(self, "fontResignCurrent")
super(GlobalMaks, self).windowCloseCallback(sender)
示例7: windowCloseCallback
def windowCloseCallback(self, sender):
removeObserver(self, "draw")
removeObserver(self, "drawInactive")
removeObserver(self, "currentGlyphChanged")
setExtensionDefault("%s.%s" % (extensionID, "tension"), self.w.HobbySlider.get())
super(metapolator, self).windowCloseCallback(sender)
UpdateCurrentGlyphView()
示例8: removeObserver
def removeObserver(self):
removeObserver(self, "draw")
示例9: _close
def _close(self,sender):
self.w.hide()
removeObserver(self, event)
removeObserver(self, "fontWillOpen")
removeObserver(self, "fontDidClose")
示例10: windowClose
def windowClose(self, sender):
removeObserver(self, "_currentGlyphChanged")
示例11: removeObservers
def removeObservers(self):
removeObserver(self, "drawBackground")
removeObserver(self, "drawInactive")
示例12: windowClose
def windowClose(self, notification):
removeObserver(self, 'draw')
removeObserver(self, 'drawInactive')
removeObserver(self, 'mouseUp')
removeObserver(self, 'mouseDown')
removeObserver(self, 'mouseDragged')
removeObserver(self, 'keyDown')
removeObserver(self, 'keyUp')
removeObserver(self, 'selectAll')
removeObserver(self, 'deselectAll')
removeObserver(self, 'currentGlyphChanged')
示例13: kill_show_dist
def kill_show_dist(self, info):
removeObserver(self, 'glyphWindowWillClose')
示例14: windowCloseCallback
def windowCloseCallback(self, sender):
events.removeObserver(self, "currentGlyphChanged")
super(MultiFontPreview, self).windowCloseCallback(sender)
示例15: windowCloseCallback
def windowCloseCallback(self, sender):
removeObserver(self, "drawBackground")
self.updateView()
super(OutlinerPalette, self).windowCloseCallback(sender)