use applescript to force slash screen on to, thanks Marc
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-05-19 10:07:52) dev
|
||||
Version 2.00.0 (2012-05-19 10:09:36) dev
|
||||
|
||||
@@ -983,6 +983,17 @@ def start(cron=True):
|
||||
|
||||
if root:
|
||||
root.focus_force()
|
||||
|
||||
# Mac OS X - make the GUI window rise to the top
|
||||
if os.path.exists("/usr/bin/osascript"):
|
||||
applescript = """
|
||||
tell application "System Events"
|
||||
set proc to first process whose unix id is %d
|
||||
set frontmost of proc to true
|
||||
end tell
|
||||
""" % (os.getpid())
|
||||
os.system("/usr/bin/osascript -e '%s'" % applescript)
|
||||
|
||||
if not options.quiet:
|
||||
presentation(root)
|
||||
master = web2pyDialog(root, options)
|
||||
|
||||
Reference in New Issue
Block a user