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