Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Good Looking UI for a stand alone application
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Luc Heinrich, post: 2050700"] For the sole purpose of providing an easy way to run existing wxPerl and wxPython code (and possibly "pure" wxWidgets code as well). As a *porting* aid if you will, as hinted in the "Using Traditional UNIX Graphical Environments" of the "Porting UNIX/Linux Applications to Mac OS X" document, here: <[URL]http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix[/URL] /index.html> I quote you: none, zero, zilch :> What's that ? Homework ? Oh well, here you go: import os import subprocess def findLinkedWithWX(folder): for root, dirs, files in os.walk(folder): for d in list(dirs): if d.endswith('.app'): dirs.remove(d) exename, _ = os.path.splitext(d) exe = '%s/%s/Contents/MacOS/%s' % (root, d, exename) popen = subprocess.Popen(['otool', '-L', exe], stdout=subprocess.PIPE) libs = popen.communicate()[0] if 'libwx' in libs: print d findLinkedWithWX('/Applications') findLinkedWithWX('/Developer') [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Good Looking UI for a stand alone application
Top