Re: Thank you, Tkinter. (easy to use)
On Feb 12, 12:39 am, r wrote: > Hello, > > Tkinter is a great GUI toolkit, for what it lacks in prettiness it > more than makes up for in simple and quick GUI building. I think this > is the main reason Tkinter continues to be Python's built-in GUI > toolkit. It is a great place to start for those with no GUI > experience. Sure it will never be as rich as wxPython or the like, but > that is not what Tkinter is made for. > > I use Tkinter for all my tools that need a UI, and others as well. The > only complaint i have is the poor support for image types i really > wish there where at least support for one good image like jpg, png, > and full color bitmaps.The canvas widget could also use a little more > functionality, but hey maybe one day i will have time to polish it up > a bit. There is the Python Image Library (PIL), but when I tried to install it I of course had to install the JPEG package as well which didn't install correctly. After trying several times to install it (the JPEG package that is, PIL installed fine, but I only wanted it for the extra image support) I just gave up. Does anyone know of a quick and easy install for PIL + JPEG for Mac OS X (10.5)? -- http://mail.python.org/mailman/listinfo/python-list
Packaging modules with Bundlebuilder
Hello everyone, I'm curious about creating .app files for the mac using bundlebuilder (or py2app or even py2exe). I'm just about done creating a GUI for a little set of scripts which basically perform batch image editing. If I send this app to friends and family will they be able to use it? Or would they have to download PIL (which the app uses). I guess what I'm asking, does PIL get bundled into the app? I obviously wouldn't want them to have to download anything as that would be embarrassing to me :D -- http://mail.python.org/mailman/listinfo/python-list
Re: Packaging modules with Bundlebuilder
On Mar 4, 1:34 am, "Diez B. Roggisch" wrote: > DLitgo schrieb: > > > Hello everyone, > > > I'm curious about creating .app files for the mac using bundlebuilder > > (or py2app or even py2exe). I'm just about done creating a GUI for a > > little set of scripts which basically perform batch image editing. > > > If I send this app to friends and family will they be able to use it? > > Or would they have to download PIL (which the app uses). I guess what > > I'm asking, does PIL get bundled into the app? I obviously wouldn't > > want them to have to download anything as that would be embarrassing > > to me :D > > I never bundled PIL myself, but py2app at least comes with a recipe for > it - which means that it should be included into the distribution. > > And that should be self-contained, including even the python interpreter. > > So friends and family ought to be safe. > > Diez Okay cool, thanks for the reply! -- http://mail.python.org/mailman/listinfo/python-list
Unusual Python interpreter problem with os.fork()
Hello everyone,
I have a curious problem which I'm wondering if anyone here can shed
some light on. I'm basically just following along with a guide which
is going through some of the os module, and I'm running some examples
in the python interpreter on mac os x (accessed through terminal/
bash).
Basically all I did was use os.fork() which caused this strange
problem:
Macintosh:~ $ python
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import os
>>> pid = os.fork()
>>> >>> pid
Traceback (most recent call last):
File "", line 1, in
NameError: name 'i' is not defined
>>> print 'what the hell?'
File "", line 1
pdpit'htth l'?
^
SyntaxError: invalid syntax
>>> exit()
File "", line 1
ex)
^
SyntaxError: invalid syntax
>>> ^D
File "", line 1
rn wa ehe'it(
^
SyntaxError: invalid syntax
>>>
KeyboardInterrupt
>>>
>>> exit()
Macintosh:~ $
Sorry for any formatting issues with the above code/output, I don't
post on these mailing lists often and I usually just do it through
groups.google.com in my browser.
But as you can see something strange happens and things just get
garbled and unusual. I restarted bash to see if that was the issue (it
isn't) and I've also restarted my computer since I noticed this
happening (earlier today) and nothing different happens when I import
and use os.fork().
I did however enter these simple lines into an empty file and ran it
from bash which ended up going just fine:
#file: test.py
import os
pid = os.fork()
if pid == 0: os.execvp("ls", ["ls", "-l"])
--
http://mail.python.org/mailman/listinfo/python-list
Re: Unusual Python interpreter problem with os.fork()
On Mar 6, 7:20 am, Jean-Paul Calderone wrote: > On Fri, 6 Mar 2009 05:00:03 -0800 (PST), DLitgo wrote: > >Hello everyone, > > >I have a curious problem which I'm wondering if anyone here can shed > >some light on. I'm basically just following along with a guide which > >is going through some of the os module, and I'm running some examples > >in the python interpreter on mac os x (accessed through terminal/ > >bash). > > >Basically all I did was use os.fork() which caused this strange > >problem: > > >Macintosh:~ $ python > >Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) > >[GCC 4.0.1 (Apple Inc. build 5465)] on darwin > >Type "help", "copyright", "credits" or "license" for more information. > > >>>> import os > >>>> pid = os.fork() > > As soon as this returns, you have two CPython processes reading from stdin > and writing to stdout. They fight over your input and their output gets > interleaved in non-deterministic ways. Basically, you probably don't ever > want to do this. > > Jean-Paul Okay cool, I guess the example wasn't meant to be run in the interpreter then :) Thanks for the reply. -- http://mail.python.org/mailman/listinfo/python-list
