Re: Python Image Registration and Cropping?

2014-05-04 Thread mikejohnryan08
On Sunday, May 4, 2014 11:51:00 AM UTC-4, Ian wrote: > On Sun, May 4, 2014 at 7:24 AM, Dave Angel wrote: > > > mikejohnrya...@gmail.com Wrote in message: > > >> Hello, > > >> > > >> Is there a Python tool or function that can register two images together > >> (line them up visually), and then

Re: Glade on Windows using Python

2014-05-04 Thread Michael Torrie
On 05/04/2014 01:51 PM, mbg1...@planetmail.com wrote: > So...it turns out that Glade support for Python 2.7 is pretty difficult. > I ended up rewriting the whole thing using Tkinter and ttk.Treeview. > It would have been good to reuse the Glade XML...less code, better looking, > etc. etc. Both Gt

Re: Glade on Windows using Python

2014-05-04 Thread mbg1708
On Tuesday, April 22, 2014 7:08:29 PM UTC-4, mbg...@planetmail.com wrote: > Using Windows 8.1 Update. > > I've loaded ActiveState python (version 2.7) --- installed OK. > > I don't need Glade, but I do want to use some Glade XML and run the python > application. > > To run a Glade application t

Re: Why has __new__ been implemented as a static method?

2014-05-04 Thread Ian Kelly
On Sun, May 4, 2014 at 8:16 AM, Steven D'Aprano wrote: > On Sun, 04 May 2014 20:03:35 +1200, Gregory Ewing wrote: > >> Steven D'Aprano wrote: >>> If it were a class method, you would call it by MyBaseClass.__new__() >>> rather than explicitly providing the cls argument. >> >> But that wouldn't be

Re: Why has __new__ been implemented as a static method?

2014-05-04 Thread Rotwang
On 04/05/2014 15:16, Steven D'Aprano wrote: On Sun, 04 May 2014 20:03:35 +1200, Gregory Ewing wrote: Steven D'Aprano wrote: If it were a class method, you would call it by MyBaseClass.__new__() rather than explicitly providing the cls argument. But that wouldn't be any good, because the base

Re: Python Image Registration and Cropping?

2014-05-04 Thread Ian Kelly
On Sun, May 4, 2014 at 7:24 AM, Dave Angel wrote: > mikejohnrya...@gmail.com Wrote in message: >> Hello, >> >> Is there a Python tool or function that can register two images together >> (line them up visually), and then crop them to the common overlap area? I'm >> assuming this can probably be

Re: Why has __new__ been implemented as a static method?

2014-05-04 Thread Steven D'Aprano
On Sun, 04 May 2014 20:03:35 +1200, Gregory Ewing wrote: > Steven D'Aprano wrote: >> If it were a class method, you would call it by MyBaseClass.__new__() >> rather than explicitly providing the cls argument. > > But that wouldn't be any good, because the base __new__ needs to receive > the actua

Re:Python Image Registration and Cropping?

2014-05-04 Thread Dave Angel
mikejohnrya...@gmail.com Wrote in message: > Hello, > > Is there a Python tool or function that can register two images together > (line them up visually), and then crop them to the common overlap area? I'm > assuming this can probably be done with Python Imaging Library but I'm not > very fam

Re: tkinter: invisible PanedWindow "sashes" on OS X

2014-05-04 Thread draganov93
Hi to all, I have a similar problem. I have a PanedWindow with a lot of checkboxes in it and i want to make the checkboxes non-resizable.How can i achieve this? -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in Decimal??

2014-05-04 Thread Mark Dickinson
On Tue, 29 Apr 2014 19:37:17 -0700, pleasedontspam wrote: > Hello, I believe I found a bug in the Decimal library. The natural logarithm > results seem to be off in a certain range, as compared with Wolfram Alpha. I had a quick look: this isn't a bug - it's just the result of propagation of the e

Re: Why has __new__ been implemented as a static method?

2014-05-04 Thread Gregory Ewing
Steven D'Aprano wrote: If it were a class method, you would call it by MyBaseClass.__new__() rather than explicitly providing the cls argument. But that wouldn't be any good, because the base __new__ needs to receive the actual class being instantiated, not the class that the __new__ method bel