L lynkynpark86 macrumors 6502 Original poster Mar 16, 2010 330 0 Maine, USA, Earth, Solar System, Milky Way, Univer Dec 21, 2011 #1 Is there a way to show a dialog box in Python without Tk, wx-python, etc? Is there something similar to AppleScript's "display dialog" I could use?
Is there a way to show a dialog box in Python without Tk, wx-python, etc? Is there something similar to AppleScript's "display dialog" I could use?
chown33 Moderator Staff member Aug 9, 2009 11,442 9,667 A sea of green Dec 21, 2011 #2 Run the 'osascript' command from Python. Example shell command line: Code: osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"' I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc.
Run the 'osascript' command from Python. Example shell command line: Code: osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"' I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc.
L lynkynpark86 macrumors 6502 Original poster Mar 16, 2010 330 0 Maine, USA, Earth, Solar System, Milky Way, Univer Dec 21, 2011 #3 chown33 said: Run the 'osascript' command from Python. Example shell command line: Code: osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"' I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc. Click to expand... Thanks, I just tried: Code: osascript -e 'display dialog "Hello world"' It works now with system events, thanks!
chown33 said: Run the 'osascript' command from Python. Example shell command line: Code: osascript -e 'tell app "System Events" to display dialog "Explode the penguin now?"' I assume you know how to open the man page for osascript, how to run subprocesses in Python, etc. Click to expand... Thanks, I just tried: Code: osascript -e 'display dialog "Hello world"' It works now with system events, thanks!