diff options
Diffstat (limited to 'lvc/osx')
-rw-r--r-- | lvc/osx/__init__.py | 0 | ||||
-rw-r--r-- | lvc/osx/app_main.py | 12 | ||||
-rw-r--r-- | lvc/osx/autoupdate.py | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/lvc/osx/__init__.py b/lvc/osx/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lvc/osx/__init__.py diff --git a/lvc/osx/app_main.py b/lvc/osx/app_main.py new file mode 100644 index 0000000..487253d --- /dev/null +++ b/lvc/osx/app_main.py @@ -0,0 +1,12 @@ +import os +import sys + +from lvc.osx import autoupdate +from lvc.widgets import app +from lvc.widgets import initialize +from lvc.ui.widgets import Application + +# run the app +autoupdate.initialize() +app.widgetapp = Application() +initialize(app.widgetapp) diff --git a/lvc/osx/autoupdate.py b/lvc/osx/autoupdate.py new file mode 100644 index 0000000..7b17d47 --- /dev/null +++ b/lvc/osx/autoupdate.py @@ -0,0 +1,9 @@ +from Foundation import * + +def load_sparkle_framework(): + bundlePath = '%s/Sparkle.framework' % Foundation.NSBundle.mainBundle().privateFrameworksPath() + objc.loadBundle('Sparkle', globals(), bundle_path=bundlePath) + +def initialize(): + load_sparkle_framework() + SUUpdater.sharedUpdater().setAutomaticallyChecksForUpdates_(YES) |