y2app magic going on...
Tom Elliott
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo