[Pythonmac-SIG] python 2.7 Tkinter using Tk 8.6

2010-05-21 Thread Stephen M. Gava

Hi there,
I've installed the python.org package of python 2.7b2 for osx snow leopard.

It's Tkinter appears to be built against Tk 8.4, but I want to use 
Tkinter with my installed framework build of Tk 8.6 (for native Tk .png 
support among other 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
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Subject:, Could py2app bundle all the requirements of my package?

2010-05-21 Thread Brendan Simon (eTRIX)
I think the short answer is yes.
I've had no trouble with py2app getting all my dependencies.
You have a bigger app so it may need some extra tweaking, but py2app has
lots of commands to include and exclude stuff.  It is similar to py2exe
from what I can tell.

Cheers, Brendan.

> Subject:
> [Pythonmac-SIG] Could py2app bundle all the requirements of my package?
> From:
> cool-RR 
> Date:
> Fri, 21 May 2010 00:26:30 +0200
>
> To:
> pythonmac-sig 
>
>
> Hello!
>
> I'm developing a desktop application called GarlicSim:
>
> http://garlicsim.org
>
> I want to distribute it natively to all OSes.
>
> On Windows I have already succeeded packaging it with py2exe and
> InnoSetup.
>
> I have not touched py2app yet. Do you think that py2app could bundle
> all the packages I want?
>
> I want to bundle the entire Python standard library. (My program is a
> sort of a science lab, and a very important part of it is a Python
> shell that I provide, and I want my users to be able to use all of
> Python.)
> I want to bundle wxPython and cairo. (I'm especially worried about
> cairo.) My app is wxPython-based and I want to use cairo for drawing
> widgets.
> I want to bundle a big selection of scientific modules. Scipy, numpy,
> Traits, Mayavi (With VTK, which is especially hard to install.) Pretty
> much most of the things that Enthought provides.
>
> Note that with py2exe I've been able to do all of the above, (except I
> haven't finished bundling all the scientific libraries, just most of
> them.)
>
> (And no, I don't mind my app weighing 1GB.)
>
> Will py2app be able to bundle all these things and how much hair will
> I have left on my head after I get it working?
>
> (Please `cc` any replies to me.)
>
> Thanks for your help,
> Ram Rachum.
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


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

2010-05-21 Thread Kevin Walzer

On 5/21/10 1:16 AM, Stephen M. Gava wrote:

Hi there,
I've installed the python.org package of python 2.7b2 for osx snow leopard.

It's Tkinter appears to be built against Tk 8.4, but I want to use
Tkinter with my installed framework build of Tk 8.6 (for native Tk .png
support among other 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 Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-21 Thread ronaldoussoren
On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:On 5/21/10 1:16 AM, Stephen M. Gava wrote:
> Hi there,
> I've installed the python.org package of python 2.7b2 for osx snow leopard.
>
> It's Tkinter appears to be built against Tk 84, but I want to use
> Tkinter with my installed framework build of Tk 8.6 (for native Tk .png
> support among other 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.The binary installers link to 8.4, and that won't change until all supported versions of OSX ship with a newer version of Tk.I'm willing to ship a version of tkinter that links with 8.5, but only if someone provides a patch that enables linking to both 8.4 and 8.5 (in two different builds of _tkinter) and automaticly selects the right version to use.What I'm thinking of is:have _tkinterpy that does:try:   from _tkinter85 import *except ImportError:   from _tkinter84 import *Then patch setup.py to build _tkinter84.so and _tkinter85.so from _tkinter.c while linking to the right version of Tk. This should only be done when a special configure argument is present, if it isn't setup.py should default to building _tkinter.so like it currently does. Ronald 

--Kevin
-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-21 Thread Michael Foord
On 21 May 2010 16:21, ronaldoussoren  wrote:

>
>
> On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:
>
> On 5/21/10 1:16 AM, Stephen M. Gava wrote:
> > Hi there,
> > I've installed the python.org package of python 2.7b2 for osx snow
> leopard.
> >
> > It's Tkinter appears to be built against Tk 84, but I want to use
> > Tkinter with my installed framework build of Tk 8.6 (for native Tk .png
> > support among other 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.
>
>
> The binary installers link to 8.4, and that won't change until all
> supported versions of OSX ship with a newer version of Tk.
>
> I'm willing to ship a version of tkinter that links with 8.5, but only if
> someone provides a patch that enables linking to both 8.4 and 8.5 (in two
> different builds of _tkinter) and automaticly selects the right version to
> use.
>
> What I'm thinking of is:
>
> have _tkinterpy that does:
>
> try:
>from _tkinter85 import *
> except ImportError:
>from _tkinter84 import *
>
> Then patch setup.py to build _tkinter84.so and _tkinter85.so from
> _tkinter.c while linking to the right version of Tk. This should only be
> done when a special configure argument is present, if it isn't setup.py
> should default to building _tkinter.so like it currently does.
>


That sounds great!

Michael



>
> Ronald
>
>
>
>
>
> --Kevin
> --
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> ___
> Pythonmac-SIG maillist - [email protected]
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: 
> http://mail.python.org/mailman/options/Pythonmac-SIG
>
>
> ___
> Pythonmac-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
>


-- 
http://www.ironpythoninaction.com/
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-21 Thread Ronald Oussoren

On 21 May, 2010, at 17:31, Michael Foord wrote:

> 
> 
> On 21 May 2010 16:21, ronaldoussoren  wrote:
> 
> 
> On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:
> 
>> On 5/21/10 1:16 AM, Stephen M. Gava wrote:
>> > Hi there,
>> > I've installed the python.org package of python 2.7b2 for osx snow leopard.
>> >
>> > It's Tkinter appears to be built against Tk 84, but I want to use
>> > Tkinter with my installed framework build of Tk 8.6 (for native Tk .png
>> > support among other 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.
> 
> The binary installers link to 8.4, and that won't change until all supported 
> versions of OSX ship with a newer version of Tk.
> 
> I'm willing to ship a version of tkinter that links with 8.5, but only if 
> someone provides a patch that enables linking to both 8.4 and 8.5 (in two 
> different builds of _tkinter) and automaticly selects the right version to 
> use.
> 
> What I'm thinking of is:
> 
> have _tkinterpy that does:
> 
> try:
>from _tkinter85 import *
> except ImportError:
>from _tkinter84 import *
> 
> Then patch setup.py to build _tkinter84.so and _tkinter85.so from _tkinter.c 
> while linking to the right version of Tk. This should only be done when a 
> special configure argument is present, if it isn't setup.py should default to 
> building _tkinter.so like it currently does. 
> 
> 
> That sounds great!

Cool. When can I expect a patch ;-)

Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-21 Thread Michael Foord

On 21/05/2010 17:28, Ronald Oussoren wrote:


On 21 May, 2010, at 17:31, Michael Foord wrote:




On 21 May 2010 16:21, ronaldoussoren > wrote:




On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:


On 5/21/10 1:16 AM, Stephen M. Gava wrote:
> Hi there,
> I've installed the python.org  package of
python 2.7b2 for osx snow leopard.
>
> It's Tkinter appears to be built against Tk 84, but I want to use
> Tkinter with my installed framework build of Tk 8.6 (for
native Tk .png
> support among other 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.


The binary installers link to 8.4, and that won't change until
all supported versions of OSX ship with a newer version of Tk.

I'm willing to ship a version of tkinter that links with 8.5, but
only if someone provides a patch that enables linking to both 8.4
and 8.5 (in two different builds of _tkinter) and automaticly
selects the right version to use.

What I'm thinking of is:

have _tkinterpy that does:

try:
   from _tkinter85 import *
except ImportError:
   from _tkinter84 import *

Then patch setup.py to build _tkinter84.so and _tkinter85.so from
_tkinter.c while linking to the right version of Tk. This should
only be done when a special configure argument is present, if it
isn't setup.py should default to building _tkinter.so like it
currently does.



That sounds great!


Cool. When can I expect a patch ;-)

Judging by the progress of my current good intentions for learning to 
contribute to the C parts of CPython it will only be a few years now... :-(


Michael


Ronald




--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from any and all 
NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, 
confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS 
AGREEMENTS") that I have entered into with your employer, its partners, licensors, 
agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. 
You further represent that you have the authority to release me from any BOGUS AGREEMENTS 
on behalf of your employer.


___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG