Re: [Pythonmac-SIG] How to include or install a Python runtime in an AppleScript applet

2021-10-02 Thread Kevin Walzer
is no simple way to embed a Python installation within an AppleScript applet. If you're doing that, you might as well all the way and deploy your script as a full Mac application with Python libraries bundled using a tool like py2app. --Kevin -- Kevin Walzer Code by Kevin

Re: [Pythonmac-SIG] PMPrinterPrintWithProvider

2019-01-25 Thread Kevin Walzer
On 1/25/19 5:44 AM, Ronald Oussoren via Pythonmac-SIG wrote: These APIs are not available through PyObjC at this time. Why do you want these APIs instead of the higher level APIs in AppKit? Since these are C API's, it should be possible to access them through ctypes, yes? -- Kevin W

[Pythonmac-SIG] py2app error

2018-02-19 Thread Kevin Walzer
552f is not in range [U+; U+10] I am not certain of how to proceed. Please advise. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org h

Re: [Pythonmac-SIG] Tkinter and PyObjC

2017-09-06 Thread Kevin Walzer
e for this to work because of Tk's architecture. I don't think that calling Tk from Cocoa is feasible. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG ma

Re: [Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread Kevin Walzer
ac OS, which is very old and buggy in terms of event loop integration; these kinds of overloads were not uncommon with that version (8.5). Try updating your build to 8.6.6 and see what happens; it's a lot more stable. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by

Re: [Pythonmac-SIG] Build Applet with 2.7.13 (64-bit) on 10.10.5 (and 10.6.x)

2017-01-22 Thread Kevin Walzer
s one who used Build Applet back in the day, but it's probably been 10 years). --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-S

Re: [Pythonmac-SIG] Phantom Dock menu entries for tkinter dialogs on Mac

2016-12-13 Thread Kevin Walzer
g this exact issue but I did see similar things with "ghost windows" hanging around in a system menu after being destroyed. You may want to update your installation of Tk. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://w

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-23 Thread Kevin Walzer
and why you are using it instead of codesign, but in my experience setting a signature size, i.e. --signature-size 9400, sometimes fixes codesign failures. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmob

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-22 Thread Kevin Walzer
syntax because it looks to be malware) saw this popup: I saw that too, but I suspect Brendan simply mistyped the domain. startssl.com is a valid CA for codesigning certs, and they have the lowest-cost certificates in the business. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-22 Thread Kevin Walzer
does not recognize certificates from authorities other than Apple--not sure if codesign itself would flag a signature as non-valid if the cert was not issued by Apple's developer group. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmob

Re: [Pythonmac-SIG] New page on wiki about system Python

2014-08-03 Thread Kevin Walzer
jects that will deployed elsewhere, it's probably better to use a new installation. However, for casual programming, the system Python is fine. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobileso

Re: [Pythonmac-SIG] Code signing py2app generated apps

2014-06-07 Thread Kevin Walzer
ture: i386 The certificate is a .p12 file that was imported with KeyChain.app to the System destination keychain. This works for me: codesign --deep --signature-size 9400 -f -s "Developer ID Application: Kevin Walzer" cbk/QuickWho.app I use cx_freeze in this app, not py2app, but this

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 129, Issue 1

2014-01-05 Thread Kevin Walzer
require using their Python as well. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listin

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 129, Issue 1

2014-01-05 Thread Kevin Walzer
ation; and supporting 64-bit Python. I bet you can run the installer package from the GUI, as well, since it's not an old package like wxPython 2.8. Hope this helps, Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobileso

Re: [Pythonmac-SIG] Bad installer for wxPython2.8-osx-ansi-2.8.12.1-universal-py2.7

2014-01-04 Thread Kevin Walzer
ython referenced in the stack trace, it's 2.8, not the 2.9. one you installed. 2.8 is 32-bit only. Looks like Python is confused about which version to load. You may simply want to remove the 2.8 one altogether to avoid the conflict. --Kevin -- Kevin Walzer Code by Ke

Re: [Pythonmac-SIG] Building extension modules with Xcode 5

2013-10-24 Thread Kevin Walzer
a more official capacity, as the maintainers, but that's my two cents. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org h

Re: [Pythonmac-SIG] Fwd: Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-10 Thread Kevin Walzer
Parallels are two Qt apps that do a better job with the UI. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org

Re: [Pythonmac-SIG] Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-09 Thread Kevin Walzer
ow, I don't think Nokia has much to do with it (again I could be wrong!) but still seems active. Phil Thompson earns his living dual-licensing PyQt (commercial and GPL), just as TrollTech did. Moving to LGPL would probably hurt his revenue. --Kevin -- Kevin Walzer Code by Kevin/Mobile

Re: [Pythonmac-SIG] Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-09 Thread Kevin Walzer
after Digia took over Qt? My impression is that it was now an orphan. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http

Re: [Pythonmac-SIG] Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-09 Thread Kevin Walzer
indow flag. See http://doc.qt.digia.com/qq/qq18-macfeatures.html for particulars. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org

Re: [Pythonmac-SIG] app won't quit?

2013-05-27 Thread Kevin Walzer
Wxpython bug, that is. Sent from my iPhone On May 27, 2013, at 11:26 AM, Charles Hartman wrote: > I'm coming back to all of this after years away, so I'm sure I'm missing > something simple. I've brought an old app into the current world: > >Python 2.7.5 >OS 10.8.3 >wxPython 2.9

Re: [Pythonmac-SIG] app won't quit?

2013-05-27 Thread Kevin Walzer
I've observed this with the wxPy demo...may be a ex bug. Sent from my iPhone On May 27, 2013, at 11:26 AM, Charles Hartman wrote: > I'm coming back to all of this after years away, so I'm sure I'm missing > something simple. I've brought an old app into the current world: > >Python 2.7.

Re: [Pythonmac-SIG] NSSpeechSynthesizer from AppKit?

2013-05-01 Thread Kevin Walzer
its documentation can be found via "man say". The overhead of pyobjc isn't necessary here. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG ma

Re: [Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

2013-03-30 Thread Kevin Walzer
() failed with errno=1 3/30/13 7:04:02.119 PM DeFisheye: DeFisheye Error Some linking error to libpng, apparently. This wouldn't seem to have anything to do with the Cocoa linking issue in py2app. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com

Re: [Pythonmac-SIG] Query Regarding IDE for python for GUI Apps

2013-02-20 Thread Kevin Walzer
IDE) follow Windows/Linux design patterns and jam every conceivable function into a toolbar button; the result is an incomprehensible, overwhelming mess. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com

Re: [Pythonmac-SIG] Query Regarding IDE for python for GUI Apps

2013-02-20 Thread Kevin Walzer
using the X11 version of Gtk...even Gimp now runs natively on OS X. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.py

Re: [Pythonmac-SIG] Query Regarding IDE for python for GUI Apps

2013-02-19 Thread Kevin Walzer
. Simple but adequate for my needs. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo

[Pythonmac-SIG] Re-linking app with system Tk frameworks

2013-01-28 Thread Kevin Walzer
an my own installation in /Library/Frameworks? I don't want to have to rebuild Python to achieve this effect, but my previous experience with py2app suggests that it's the only way to make sure py2app doesn't vaccum up the /Library/Framework bits. --Kevin -- Kevin

Re: [Pythonmac-SIG] KeyError: 'CFLAGS'

2012-12-13 Thread Kevin Walzer
cific tool. You should switch to the target platform and try building there. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig un

Re: [Pythonmac-SIG] Getting control over the Apple menu

2012-11-01 Thread Kevin Walzer
27;s wrapped with py2app, the executable is the actual app name (actually, the stub executable created by py2app, but which is renamed to match your app). You shouldn't expect to see anything but what you are seeing. -- Kevin Walzer Code by Kevin http://www.codebykevin.com __

Re: [Pythonmac-SIG] Getting control over the Apple menu

2012-11-01 Thread Kevin Walzer
On 10/31/12 9:49 PM, w...@mac.com wrote: Where should I have been looking to find that for myself, please? The Tk man pages discuss special menus, including the Apple menu; I figured it out in Tkinter by Googling for snippets. Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com

Re: [Pythonmac-SIG] Getting control over the Apple menu

2012-10-31 Thread Kevin Walzer
On 10/31/12 5:48 PM, w...@mac.com wrote: applemenu = Menu(menubar, tearoff = FALSE) Add the apple name to the menu object, cf: applemenu = Menu(menubar, tearoff = FALSE, name='apple') That works for me. -- Kevin Walzer Code by Kevin http://www.codeb

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-11 Thread Kevin Walzer
On 10/10/12 11:26 PM, Ned Deily wrote: A Python patch could go here: http://bugs.python.org/issue15853 Patch submitted. The preferences dialog no longer crashes for me. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-10 Thread Kevin Walzer
On 10/10/12 10:02 PM, Kevin Walzer wrote: I've been stepping through the IDLE source code and it appears IDLE is crashing during the LoadConfigs() call of the config dialog. Still have more investigating to do, but I'm hopeful I can come up with a workaround that will keep things fro

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-10 Thread Kevin Walzer
level with calls to update, after idle, etc. It may take some trial and error here to get that working. If I'm successful, where should I submit a patch? --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-10 Thread Kevin Walzer
On 10/10/12 7:38 PM, Ned Deily wrote: Look at the dump file I attached to the Tk issue. It has a complete debug trace through Tk including C line numbers. My stack trace is completely different, so I'm not sure where to look. -- Kevin Walzer Code by Kevin http://www.codebykevi

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-10 Thread Kevin Walzer
ion sendEvent:] + 5772 47 Tk 0x0b0c591e 0xb00 + 809246 48 Tk 0x0b0c5ca6 0xb00 + 810150 49 Tcl 0x0a07c2d1 Tcl_DoOneEvent + 180 50 _tkinter.so 0x00593ef3 Tkapp_MainLoop + 355 (_tkinter.c:

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-09 Thread Kevin Walzer
P.S. To fire the prefs dialog, type Command-, or command-comma. That is the default keybinding even though I did not explicitly enable it in the script. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-09 Thread Kevin Walzer
ut it doesn't. Please try it to confirm. At this point I'm not sure what else to suggest. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mail

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-08 Thread Kevin Walzer
s preferences method is calling into tk::mac::ShowPreferences, then it shouldn't crash unless Wish is also crashing. I don't know what to say if something crashes in Python/Tkinter but not in Tk. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com _

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-08 Thread Kevin Walzer
veTcl, you won't see this fix, because ActiveState hasn't incorporated it yet. The fix was committed in the past month or so, I believe, as part of the input method patch submitted by Adrian Robert. --Kevin -- Kevin Walzer Code by Kevin http:/

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-08 Thread Kevin Walzer
it's still available. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/op

Re: [Pythonmac-SIG] IDLE Crashes when Prefs are accessed on Python 3.3 on OSX 10.8.2

2012-10-08 Thread Kevin Walzer
away. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] Tkinter ttk question

2012-10-02 Thread Kevin Walzer
anyone tell me what I'm doing wrong. I prefer pack to grid. Try this: mainframe.pack(fill=BOTH, expand=YES) --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.

Re: [Pythonmac-SIG] Tkinter/Mac newbie query

2012-09-11 Thread Kevin Walzer
y have a similar API, but they are not identicial (cf. you can't set the foreground for them without creating an entirely custom stule; they pick up platform defaults much better, though). -- Kevin Walzer Code by Kevin http://www.codebykevin.com

Re: [Pythonmac-SIG] wxCocoa no top menu

2012-08-15 Thread Kevin Walzer
You may have better luck asking on a wxPython ML... Sent from my iPhone On Aug 15, 2012, at 12:24 PM, Mark Livingstone wrote: > No ideas? > > On 12 August 2012 13:31, Mark Livingstone wrote: >> Hi Guys, >> >> I finally dragged myself kicking and screaming into the current >> millennium, and

Re: [Pythonmac-SIG] Problems with /Library/ScriptingAdditions/Adobe Unit Types.osax

2012-06-07 Thread Kevin Walzer
Additions, so I'm not sure. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] Problems with /Library/ScriptingAdditions/Adobe Unit Types.osax

2012-06-06 Thread Kevin Walzer
? If you post a copy of your code, it would be easier to figure out what's going on. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-

Re: [Pythonmac-SIG] Problems with /Library/ScriptingAdditions/Adobe Unit Types.osax

2012-06-05 Thread Kevin Walzer
ue with my own apps, which crash when someone has an outdated osax installed--there's no workaround other than to ask the end user to remove or update the library.) -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillis

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-06-02 Thread Kevin Walzer
doOpenFile(sys.argv[1])" needs to be wrapped in some sort of try statement to guard against the app being launched without a file argument, but clearly what you want to do can be done. The opendoc event is still useful for dragging the file to the app icon in the Dock, regardles

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-06-02 Thread Kevin Walzer
launches, and any openDocument event was probably > handled BEFORE the first line of my python code is > executed. > > So none of this is any help to me. My users expect to > double click on a .ctpx document to launch the application > AND open that document for editing. > &

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-05-30 Thread Kevin Walzer
ently. I contributed documentation on all these commands to the Tk man pages: http://www.tcl.tk/man/tcl8.6/TkCmd/tk_mac.htm The commands are documented for Tk 8.6, but they are all present in the Cocoa-based version of Tk 8.5 from ActiveState as well, so you may find some useful things to look at he

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-05-30 Thread Kevin Walzer
has received some openDocument events or until a timeout occurs). You can set a CFBundleTypeExtension key in your info.plist file to indicate that your app can handle a certain type of document via double-click. -- Kevin Walzer Code by Kevin http://www.codebykevin.com

Re: [Pythonmac-SIG] py2app, system Python, and Mac App Store

2012-05-06 Thread Kevin Walzer
On 5/4/12 9:42 PM, Kevin Walzer wrote: I'm getting quite frustrated with the app store's brain dead auto-scan tool that doesn't see proper symlinks in the framework, and I'm getting to the point where I am going to investigate other packaging tools that don't set

Re: [Pythonmac-SIG] py2app, system Python, and Mac App Store

2012-05-04 Thread Kevin Walzer
framework structure--cx_freeze and/or pyinstaller. No blame to py2app here, of course. I appreciate your advice and support. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http

[Pythonmac-SIG] py2app, system Python, and Mac App Store

2012-05-03 Thread Kevin Walzer
On a related note, does anyone else have a Python app in the Mac App Store? Have you encountered issues with uploads or approvals? How are you setting up py2app? My recent headaches getting the app uploaded have been a real curveball, because I have had any issues previously. Thanks in adva

Re: [Pythonmac-SIG] py2app strips symlinks in frameworks, need to keep them

2012-05-02 Thread Kevin Walzer
archive is generated in the process though I can't be sure)--but that's a separate issue I'll have to take up with Apple. :-( Thanks, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pyth

Re: [Pythonmac-SIG] py2app strips symlinks in frameworks, need to keep them

2012-04-30 Thread Kevin Walzer
On 4/30/12 9:35 AM, Charlie Clark wrote: --semi-standalone (-s) depend on an existing installation of Python Not an option in my case, alas, but thanks for the suggestion. --K -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac

[Pythonmac-SIG] py2app strips symlinks in frameworks, need to keep them

2012-04-30 Thread Kevin Walzer
manually later in my build script, but it's a pain and I'd rather have py2app not strip them out in the first place. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@p

Re: [Pythonmac-SIG] These modules are deprecated and have been removed in Python 3.x

2012-04-18 Thread Kevin Walzer
ndard library, since these functions pre-date OS X running on top of Unix; or, if you are really in need of specific functionality offered by one of the Carbon modules, code your own C wrapper library or use Ctypes. -- Kevin Walzer Code by Kevin http://www.codebykevi

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-08 Thread Kevin Walzer
bk/Phynchronicity_intel.app cbk/Phynchronicity.app ...and so on. Hope this helps, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] appscript dead?

2012-03-08 Thread Kevin Walzer
Marking the AppleEvent API as "legacy" is not, in my view. 3. There's no real alternative to appscript in Python, unless you shift to running AppleScripts via a shell command (osascript) or use one of the "approved" Cocoa API's via PyObjC. I'm not sure either of t

Re: [Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

2011-11-10 Thread Kevin Walzer
if you decide to add this capability to py2app, I'm sure other folks would find it useful. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/list

Re: [Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

2011-11-09 Thread Kevin Walzer
On 11/8/11 11:41 PM, Kevin Walzer wrote: Is there any way I can get this executable linked to /System/Library/Frameworks/Cocoa.framework? I didn't think install_name_tool would do the trick, as that just rewrites links, rather than adding them. A Any suggestions are appreciated. I solve

[Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

2011-11-08 Thread Kevin Walzer
name_tool would do the trick, as that just rewrites links, rather than adding them. A Any suggestions are appreciated. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://

Re: [Pythonmac-SIG] Trouble building against Tkinter on 64-bit python.org python

2011-10-12 Thread Kevin Walzer
eeing this issue now after building matplotlib, then it's logical to assume that matplotlib may have been linked to the wrong library. You can change the linking by running install_name_tool to get matplotlib to point to the correct version of Tk. --Kevin -- Kevin Walzer Cod

Re: [Pythonmac-SIG] dialog always busy, not titled right

2011-10-04 Thread Kevin Walzer
ts to me that you are not running the code as an application wrapped by py2app, but just in the bare Python interpreter--that's why the title is "Python." If you want the app name, try wrapping it with py2app. -- Kevin Walzer

[Pythonmac-SIG] "App" error--visit the MacPython website

2011-09-21 Thread Kevin Walzer
alog point somewhere else? If so, where? -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] Ownership of installed Python on Mac

2011-08-09 Thread Kevin Walzer
On 8/9/11 1:21 PM, Michael Foord wrote: This is a change from previous versions of OS X. Is this known, and is it an issue? (I chown'd everything back to me to get round it.) I don't believe it is a change. /Library and /System/Library are owned by the system, not you. -- Kevin W

Re: [Pythonmac-SIG] no app found

2011-05-19 Thread Kevin Walzer
o yes. And still not compiling. This is an issue because argv_emulation is set to true. Thanks Carl IIRC, argv_emulation doesn't work in 64-bit because it depends on deprecated API's in Carbon that were not ported to 64-bit. -- Kevin Walzer Code by Kevin http:/

[Pythonmac-SIG] Tkinter app in Mac App Store

2011-04-14 Thread Kevin Walzer
about this in more depth here: http://www.codebykevin.com/opensource/app-store.html. This article doesn't mention Python (it focuses instead on Tk), but most of it is applicable, and can be supplemented by what I've outlined in this e-mail. Hope others find this useful, K

Re: [Pythonmac-SIG] Simple PyObjC question: real or vapor?

2011-04-06 Thread Kevin Walzer
ne on with both Tk and Tkinter's integration of the Cocoa version of Tk. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-s

[Pythonmac-SIG] Python compatible with GC?

2011-03-02 Thread Kevin Walzer
e3ab9 PyRun_SimpleFileExFlags + 489 21 com.codebykevin.quickwho-cbk0x00015856 start + 19074 22 com.codebykevin.quickwho-cbk0x000159c8 main + 229 23 com.codebykevin.quickwho-cbk0x00010e08 start + 52 --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevi

Re: [Pythonmac-SIG] a word of warning for pyobjc users

2011-02-22 Thread Kevin Walzer
. What other options are there? Specify your GUI by hand? Use the XML format from GNUStep? (Renaissance, I think)? --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://m

Re: [Pythonmac-SIG] Mac and Python (absolute begineer)

2011-02-10 Thread Kevin Walzer
such as 10.5.1 or even 10.4.x? A package built on 10.5.x should run fine on 10.5.x. Backwards compatibility (building on 10.5, running on 10.4) can be done but is a bit tricky. Others on the list can help with that. Good luck! Kevin -- Kevin Walzer Code by Kevin http://www.

Re: [Pythonmac-SIG] Amateur question about modules

2010-11-03 Thread Kevin Walzer
Snack is a Tkinter wrapper for the Snack sound library. You'll need to install TkSnack in your site-packages path and Snack in a place where Tkinter can find it like /Library/Tcl. Google can direct you to download sites. -- Kevin Walzer Code by Kevin http://www.

[Pythonmac-SIG] Mac app store

2010-10-21 Thread Kevin Walzer
apps in Python, I'm taking a careful look. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.p

Re: [Pythonmac-SIG] py2app 64 bit or 32 bit

2010-10-15 Thread Kevin Walzer
any binary extensions, which obviously won't run on the Mac. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://

Re: [Pythonmac-SIG] py2app on linux

2010-10-15 Thread Kevin Walzer
On 10/15/10 4:56 AM, BjornJohansson wrote: Hi, I understood that py2app can only produce mac .apps when run on macosx and not linux. Is this correct? /bjorn That's correct. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevi

Re: [Pythonmac-SIG] Python 2.6/3.1 on Mac - default arch is i386?

2010-08-16 Thread Kevin Walzer
such a patch in ActivePython? -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options

Re: [Pythonmac-SIG] Python 2.6/3.1 on Mac - default arch is i386?

2010-08-16 Thread Kevin Walzer
coa)? --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] [Pyobjc-dev] ANN: py2app 0.5

2010-07-30 Thread Kevin Walzer
you know, I've also filed patches on IDLE to make it lay nicer on Tk-Cocoa. Again, thanks for the work you do. Thanks also to Ned Deilly for his contributions, bug reports, patches, etc. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com __

Re: [Pythonmac-SIG] sys.path corrupted?

2010-06-01 Thread Kevin Walzer
On 6/1/10 11:06 AM, Kevin Walzer wrote: Does anyone have any idea what might cause my framework build of Python to see sys.path only in the build directory of one of my apps? I don't typically jigger my Python settings with .pth files so I have no idea what to look for. I solved the pr

[Pythonmac-SIG] sys.path corrupted?

2010-06-01 Thread Kevin Walzer
ypically jigger my Python settings with .pth files so I have no idea what to look for. TIA, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listin

Re: [Pythonmac-SIG] python 2.7 Tkinter using Tk 8.6

2010-05-21 Thread Kevin Walzer
her things). So, I assume I need to build my own osx packages of 2.7 linking against Tk 8.6 to achieve this? Thanks, Stephen Yes, most likely. I believe the binary installers from Python.org still link against 8.4 by default--anything else requires you to build your own. --Kevin -- Kevin Walz

Re: [Pythonmac-SIG] Problems with Tk (I think)

2010-05-07 Thread Kevin Walzer
eopard) and I don't see any crashes; I'm not able to reproduce this error. You might actually want to consider filing a bug with Apple, because this type of crash is coming from deep within Python or Tk's internals--not in your code. --Kevin -- Kevin Walze

Re: [Pythonmac-SIG] Py2app Problem

2010-04-17 Thread Kevin Walzer
ssume that means it didn't work and I'll need a mac? Mike py2app only works on the Mac... -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/li

[Pythonmac-SIG] PyQt apps on Mac

2010-03-29 Thread Kevin Walzer
st who can post links to standalone PyQt apps wrapped with py2app that run on Leopard? Thanks, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinf

Re: [Pythonmac-SIG] Shell login for py2app bundle

2010-03-19 Thread Kevin Walzer
n/convert" in the app but then when convert calls Ghostscript (gs) it can't find IT in /bin/sh. Suggestions? Thanks, Dan Why wouldn't you just use the full path to gs as well? /path/to/gs --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com _

Re: [Pythonmac-SIG] Recommended Tcl/Tk with Py-2.6.x? (was: Test failure...)

2010-03-03 Thread Kevin Walzer
On 3/3/10 5:33 AM, Ned Deily wrote: The main problem before was 64-bit Tk availability. IIRC, the only real game in town for that was the Apple-supplied 8.5 in 10.6 which apparently pulled in from the TkAqua Cocoa/64-bit port project (which now may be a part of 8.6?). Kevin Walzer was

Re: [Pythonmac-SIG] problem running py2app

2010-02-03 Thread Kevin Walzer
my first attempt to build an app. Did you get any response to this question? Thanks, -Bill http://wiki.python.org/moin/MacPython/BundleBuilder -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@py

[Pythonmac-SIG] Interesting article on 64-bit py2app

2010-01-27 Thread Kevin Walzer
in any way, so use at your own risk...) -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py2app annoyance

2010-01-26 Thread Kevin Walzer
olution here may be to recompile Tcl/Tk with different headerpad flags, which I don't have time to do.) --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py2app annoyance

2010-01-26 Thread Kevin Walzer
On 1/25/10 1:52 PM, Christopher Barker wrote: Kevin Walzer wrote: py2app may be more powerful than BundleBuilder, but it is also a complex, fragile beast. It consists of several different packages, requiring both a) a deep understanding of OS X mach-o internals and how libraries/load paths/dyld

Re: [Pythonmac-SIG] py2app annoyance

2010-01-22 Thread Kevin Walzer
ks fine with Python 2.x, and I see no reason why it can't work with Python 3.x, with some modification (it's removed from 3.x). When I move my own platform to Python 3.x in the future, I will likely start a separate BundleBuilder 3.x project. --Kevin -- Kevin Walzer Code by Kevi

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread Kevin Walzer
On 1/12/10 2:13 PM, has wrote: Kevin Walzer wrote: You don't pass self to a bound method in Python. Delete the ('', 'self', ...) tuple. HTH One more follow-up: The code now works! I run this code in Script Editor: tell application "QuickWho"

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread Kevin Walzer
t('Default') quickwhoApp.getInfo() aemreceive.installeventhandler(getDomain, 'CoKvdman', ('', 'domain', aemreceive.kae.typeUnicodeText) ) app = quickwhoApp(None) app.mainloop() This

[Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-11 Thread Kevin Walzer
execute *any* Tcl code, but aemreceive allows you to provide a real AppleScript interface to Python commands (you don't have to call raw Python code from AppleScript). There's a richer Tcl interface to Apple Events called TclAE, but it's more low-level and complex, and and it'

Re: [Pythonmac-SIG] Python app with aemreceive is not scriptable

2010-01-10 Thread Kevin Walzer
On 1/10/10 3:08 PM, Kevin Walzer wrote: What's the best way to structure the command so that it can be seen from AppleScript, i.e. run in the proper scope and not return an error? Never mind about the scope question--I found that simply adding the aemreceive bits and the custom fun

Re: [Pythonmac-SIG] Python app with aemreceive is not scriptable

2010-01-10 Thread Kevin Walzer
ript "fooApp.runCommand(\"inputstring\")" end tell returns this error: NameError: name 'fooApp' is not defined What's the best way to structure the command so that it can be seen from AppleScript, i.e. run in the proper scope and not return an error? --Kevin -- Kevin

  1   2   3   4   >