[Pythonmac-SIG] loading bundles

2007-06-30 Thread Tom Elliott
y2app magic going on... Tom Elliott ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] loading bundles

2007-06-30 Thread Tom Elliott
t works. What's the correct way to do this? Thanks for any help. Tom Elliott ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] newbie: threads in PyObjC

2007-06-06 Thread Tom Elliott
The kill() method is just a stub, written back when I thought the way to do this is for the main thread to terminate the worker thread. Now, after more reading, I realize it's better to have the worker test a condition periodically and exit (gracefully) if necessary. The withObject_ parame

[Pythonmac-SIG] newbie: threads in PyObjC

2007-06-04 Thread Tom Elliott
I'm using the PyObjC bridge. I have a computation that will be triggered by a user. It takes about 2 minutes depending on the database we're using. I'd like the user to be able to kill it if he decides it's taking too long. It seems like threading should be the solution. My simple demo

[Pythonmac-SIG] printing in a PyObjC Document-based app

2006-11-30 Thread Tom Elliott
the document.nib file has an outlet set to the window, but when I do "print self.window" from the document I get "None." What's the right way to do this? Thanks. Tom Elliott ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] (no subject)

2006-07-14 Thread Tom Elliott
Hi,Some time ago I asked this list for help with a "Newbie problem" which was really about Cocoa rather than PyObjC:  to determine which button of a set of radio buttons (NSMatrix) was selected.  Bob Ippolito kindly suggested the following elegant filter solution (given radioMatrix as an outlet, an

[Pythonmac-SIG] newbie: PIL fonts

2005-11-23 Thread Tom Elliott
Can someone point me to instructions for getting fonts to use with PIL? ( http://pythonmac.org/packages/PIL-1.1.5-py2.4-macosx10.3.zip from http://pythonmac.org/packages/ ) Thanks. Tom Elliott ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org

[Pythonmac-SIG] (no subject)

2005-11-19 Thread Tom Elliott
sr/local/bin/python setup.py install Password: running install running build running install_data error: mkpath: 'name' must be a string (got u'/Library/Frameworks/ Python.framework/Versions/2.4/English.lproj') What am I doing wrong? Thanks. Tom Elliott

[Pythonmac-SIG] simple pyobjc question

2005-11-15 Thread Tom Elliott
to be able to use MyView to display its results, but I don't know how to get them to talk to each other. If I had an instance of MyView I could pass in data and call setNeedsDisplay(True) via a button in the interface. How should I do this? T

[Pythonmac-SIG] newbie question 2

2005-11-07 Thread Tom Elliott
When a button is pushed and  "draw_" is called, I expect drawRect_ to be called through self.setNeedsDisplay_, but this doesn't work.Why is that?  Thanks.Tom Elliott# inherits from NSView via the nibclass MyView(NibClassBuilder.AutoBaseClass):    def initWithFrame_(self, frame):        super(MyView

[Pythonmac-SIG] newbie question

2005-11-06 Thread Tom Elliott
Can you point me to simple drawing example using PyObjC? I want to draw into a CustomView object (I think). I'm afraid DotView is beyond me. When I try to adapt RedSquare from Learning Cocoa...my AppDelegate can't find the custom class MyView. Thanks. T