Good Looking UI for a stand alone application
Luc Heinrich
luc at honk-honk.com
Wed Dec 20 05:13:42 EST 2006
Chris Mellon <arkanes at gmail.com> wrote:
> FYI: OS X ships with wxWidgets installed.
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:
<http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix
/index.html>
> How many applications built into OS X are built using it?
I quote you: none, zero, zilch :>
> Are you sure? How would you know?
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')
--
Luc Heinrich
More information about the Python-list
mailing list