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


Python Application.startup_ui方法代码示例

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


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

示例1: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     sys.excepthook = self.exception_handler
     Application.startup_ui(self)
     call_on_ui_thread(migrateappname.migrateVideos, 'Democracy', 'Miro')
     call_on_ui_thread(flash.check_flash_install)
     call_on_ui_thread(bonjour.check_bonjour_install)
     timer.add(15, self._init_autoupdate)
开发者ID:CodeforEvolution,项目名称:miro,代码行数:9,代码来源:application.py

示例2: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     migrateappname.migrateVideos('Democracy', 'Miro')
     osxmenus.populate_menu()
     Application.startup_ui(self)
     app.menu_manager.connect('enabled-changed', osxmenus.on_menu_change)
     app.playback_manager.connect('did-start-playing', osxmenus.on_playback_change)
     app.playback_manager.connect('did-stop', osxmenus.on_playback_change)
     quicktime.register_components()
     quicktime.warm_up()
开发者ID:nxmirrors,项目名称:miro,代码行数:11,代码来源:application.py

示例3: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     migrateappname.migrateVideos('Democracy', 'Miro')
     self.menubar = osxmenus.MenuBar()
     Application.startup_ui(self)
     # add the Amazon cookie to Safari
     storage = NSHTTPCookieStorage.sharedHTTPCookieStorage()
     if 'dmusic_download_manager_enabled' not in [
         cookie.name() for cookie in storage.cookiesForURL_(
             NSURL.URLWithString_('http://www.amazon.com'))]:
         storage.setCookie_(NSHTTPCookie.cookieWithProperties_(
                 {NSHTTPCookieName: 'dmusic_download_manager_enabled',
                  NSHTTPCookieValue: '1.0.3',
                  NSHTTPCookieDomain: '.amazon.com',
                  NSHTTPCookiePath: '/',
                  NSHTTPCookieMaximumAge: 3600 * 365 * 10}))
     quicktime.register_components()
     quicktime.warm_up()
     self.emit("event-processed")
开发者ID:CodeforEvolution,项目名称:miro,代码行数:20,代码来源:application.py

示例4: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     sys.excepthook = self.exception_handler
     Application.startup_ui(self)
     call_on_ui_thread(migrateappname.migrateVideos, 'Democracy', 'Miro')
     call_on_ui_thread(flash.check_flash_install)
     call_on_ui_thread(bonjour.check_bonjour_install)
     if app.config.get(prefs.APP_FINAL_RELEASE) == u"0":
         # if this is not a final release, look at the beta
         # channel
         url = app.config.get(prefs.AUTOUPDATE_BETA_URL)
         logging.info("Using beta channel")
     else:
         # if this is a final release, look at the final
         # channel
         url = app.config.get(prefs.AUTOUPDATE_URL)
         logging.info("Using the final channel")
     ctypes.cdll.winsparkle.win_sparkle_set_appcast_url(
                                         url.encode('ascii', 'ignore'))
     ctypes.cdll.winsparkle.win_sparkle_set_app_details(
                             unicode(app.config.get(prefs.PUBLISHER)),
                             unicode(app.config.get(prefs.SHORT_APP_NAME)),
                             unicode(app.config.get(prefs.APP_VERSION)))
     ctypes.cdll.winsparkle.win_sparkle_init()
开发者ID:codito,项目名称:miro,代码行数:25,代码来源:application.py

示例5: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     sys.excepthook = self.exception_handler
     Application.startup_ui(self)
     call_on_ui_thread(bonjour.check_bonjour_install)
开发者ID:theeternalsw0rd,项目名称:miro,代码行数:6,代码来源:application.py

示例6: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     sys.excepthook = self.exception_handler
     Application.startup_ui(self)
开发者ID:nxmirrors,项目名称:miro,代码行数:5,代码来源:application.py

示例7: startup_ui

# 需要导入模块: from miro.frontends.widgets.application import Application [as 别名]
# 或者: from miro.frontends.widgets.application.Application import startup_ui [as 别名]
 def startup_ui(self):
     Application.startup_ui(self)
     call_on_ui_thread(migrateappname.migrateVideos, 'Democracy', 'Miro')
     call_on_ui_thread(flash.check_flash_install)
开发者ID:cool-RR,项目名称:Miro,代码行数:6,代码来源:application.py


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