Inheritence Problem

2005-11-12 Thread graemeharnish
Hello. I'm trying to mod an open source app called TinyERP and inherit from a parent object, and in essence change how _column is defined. I found sample code of: class custom_product(osv.osv): __inherits__ = "product.product" __name__ = "product.product" _columns = { 'color' : fields.

Re: directory listing

2005-11-12 Thread Shi Mu
thanks a lot! On 11/11/05, Michael Konrad <[EMAIL PROTECTED]> wrote: > > This is what I decided on for a solution. I haven't tested it > cross-platform yet. > > import os > > def dirListing(directory='/Users/mkonrad'): >"""Returns a list of directories.""" >#variabl

Re: Hash map with multiple keys per value ?

2005-11-12 Thread Tom Anderson
On Fri, 11 Nov 2005, Chris Stiles wrote: > Is there an easier and cleaner way of doing this ? Is there example > code floating around that I might have a look at ? I'm not aware of a way which can honestly be called better. However, i do feel your pain about representing the alias relationship

the button of cancel

2005-11-12 Thread Ben Bush
When I click the button of cancel, I got the follwoing message. I want to see "Goodbye" on the console screen.What to do?   Traceback (most recent call last):  File "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript    exec codeObject in __main__.__dict

Re: triangulation

2005-11-12 Thread Ben Bush
Is there any pure python ocde there thoguh it is slow? Not many people know C very well and it will be great to have some python code even for education use. Ben   I know someone once mentioned that they tried writing one of theDelaunay triangulation algorithms in pure Python and abandoned it forbe

circle and point

2005-11-12 Thread Ben Bush
is there any code to decide whether a point is located within the circle by three other points?Thanks!B. Bush -- http://mail.python.org/mailman/listinfo/python-list

Installing tkinter with Python 2.4.2 on FC4

2005-11-12 Thread Paul Watson
I cannot yet get tkinter working on 2.4.2. I have installed the tk rpms from FC4. I have checked to see that TKPATH is available in Modules/Setup. How can I verify that I have tcl/tk installed correctly and it is the correct version (8+)? -- http://mail.python.org/mailman/listinfo/python-l

Re: Copyright [was Re: Python obfuscation]

2005-11-12 Thread The Eternal Squire
>Perhaps there is no way to make a living from writing novels without >copyright. There is no way to make a living from playing solitaire either >-- should the government pass a law giving a legal monopoly on playing red >queen on a black king to my granny, so that everyone playing that move >has t

Re: circle and point

2005-11-12 Thread Robert Kern
Ben Bush wrote: > is there any code to decide whether a point is located within the circle > by three other points? # Converted from my C++ code. # C.f. http://www.ics.uci.edu/~eppstein/junkyard/circumcenter.html def circumcenter(x0, y0, x1, y1, x2, y2): x0m2

Re: Copyright [was Re: Python obfuscation]

2005-11-12 Thread Mike Meyer
"The Eternal Squire" <[EMAIL PROTECTED]> writes: >>Copyright is a gift granted by the government, not the natural state of >>the world. When kings and emperors and presidents give commercial and >>economic gifts, like monopolies, they rarely are for the benefit of the >>majority. > Last I knew, we

Re: circle and point

2005-11-12 Thread Ben Bush
On 11/12/05, Robert Kern <[EMAIL PROTECTED]> wrote: Ben Bush wrote:> is there any code to decide whether a point is located within the circle> by three other points? # Converted from my C++ code.# C.f. http://www.ics.uci.edu/~eppstein/junkyard/circumcenter.htmldef circumcenter(x0, y0, 

Re: Winpdb question

2005-11-12 Thread nir1408
Hello Bryan, You can restrict the number of variables displayed in the globals name-space viewer with the filter button located second from the right on the tool bar. This will filter out modules, classes, and function names from the list. Nir -- http://mail.python.org/mailman/listinfo/python-li

<    1   2