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


Python events.removeObserver函数代码示例

本文整理汇总了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)
开发者ID:davelab6,项目名称:RoboFontExamples,代码行数:7,代码来源:stencilPreview.py

示例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()
开发者ID:metapolator,项目名称:RoboFont,代码行数:10,代码来源:EqualizeCurves.py

示例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")            
开发者ID:davelab6,项目名称:RoboFontExamples,代码行数:12,代码来源:simpleWindowObserver.py

示例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")
开发者ID:sannorozco,项目名称:Robofont-scripts,代码行数:7,代码来源:interpolation-matrix-mutatorMath.py

示例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)
开发者ID:FontBureau,项目名称:fbOpenTools,代码行数:7,代码来源:OverlayUFOs2.py

示例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)
开发者ID:davelab6,项目名称:RoboFontExamples,代码行数:8,代码来源:theMask.py

示例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()
开发者ID:davelab6,项目名称:hobbyspline,代码行数:7,代码来源:hobbyspline.py

示例8: removeObserver

 def removeObserver(self):
     removeObserver(self, "draw")
开发者ID:sannorozco,项目名称:fbOpenTools,代码行数:2,代码来源:OverlayUFOs.py

示例9: _close

	def _close(self,sender):
		self.w.hide()
		removeObserver(self, event)
		removeObserver(self, "fontWillOpen")
		removeObserver(self, "fontDidClose")
开发者ID:thomgb,项目名称:RoboFontScripts,代码行数:5,代码来源:Compare.py

示例10: windowClose

	def windowClose(self, sender):
		removeObserver(self, "_currentGlyphChanged")
开发者ID:Grigory-Koposov,项目名称:RoboFont,代码行数:2,代码来源:VersionControl.py

示例11: removeObservers

 def removeObservers(self):
     removeObserver(self, "drawBackground")
     removeObserver(self, "drawInactive")
开发者ID:davelab6,项目名称:RoboFont-2,代码行数:3,代码来源:RoboGit.py

示例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')
开发者ID:bghryct,项目名称:Robofont-scripts,代码行数:11,代码来源:cornerToolController.py

示例13: kill_show_dist

 def kill_show_dist(self, info):
     removeObserver(self, 'glyphWindowWillClose')
开发者ID:frankrolf,项目名称:showDist,代码行数:2,代码来源:showDist.py

示例14: windowCloseCallback

 def windowCloseCallback(self, sender):
     events.removeObserver(self, "currentGlyphChanged")
     super(MultiFontPreview, self).windowCloseCallback(sender)
开发者ID:aaronmoodie,项目名称:RoboFont,代码行数:3,代码来源:MultiFontPreview_ordered.py

示例15: windowCloseCallback

 def windowCloseCallback(self, sender):
     removeObserver(self, "drawBackground")
     self.updateView()
     super(OutlinerPalette, self).windowCloseCallback(sender)
开发者ID:RevolverTypeFoundry,项目名称:RoboFontExtensions,代码行数:4,代码来源:outline.py


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