• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python events.removeObserver函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mojo.events.removeObserver函数的典型用法代码示例。如果您正苦于以下问题:Python removeObserver函数的具体用法?Python removeObserver怎么用?Python removeObserver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了removeObserver函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: windowClose

 def windowClose(self, notification):
     removeObserver(self, "draw")
     removeObserver(self, "drawInactive")
     removeObserver(self, "drawPreview")
     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:fontseek,项目名称:Robofont-scripts,代码行数:12,代码来源:cornerToolController.py


示例17: showInSpaceCenterCallback

 def showInSpaceCenterCallback(self, sender):
     if sender.get():
         addObserver(self, "spaceCenterDraw", "spaceCenterDraw")
     else:
         removeObserver(self, "spaceCenterDraw")
     self.updateSpaceCenters()
开发者ID:colinmford,项目名称:slanterRoboFontExtension,代码行数:6,代码来源:slanter.py


示例18: _removeObservers

 def _removeObservers(self):
     for event in self._getObservers().keys():
             removeObserver(self, event)
开发者ID:frankrolf,项目名称:RoboFont,代码行数:3,代码来源:GlyphProcessor.py


示例19: windowClose

 def windowClose(self, notification):
     removeObserver(self, 'fontDidOpen')
     removeObserver(self, 'fontWillClose')
     removeObserver(self, 'spaceCenterDraw')
开发者ID:lolergb,项目名称:Robofont-scripts,代码行数:4,代码来源:scaleFast.py


示例20: windowClose

 def windowClose(self, sender):
     self.unsubscribeGlyph()
     if self.w.showInSpaceCenter.get():
         removeObserver(self, "spaceCenterDraw")
         self.updateSpaceCenters()
     removeObserver(self, "currentGlyphChanged")
开发者ID:colinmford,项目名称:slanterRoboFontExtension,代码行数:6,代码来源:slanter.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python extensions.getExtensionDefault函数代码示例发布时间:2022-05-27
下一篇:
Python events.addObserver函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap