Re: [Pythonmac-SIG] Re: Mac Python User Newbies

2005-02-13 Thread thor
Hi Troy, list!
Well, that is a good point. I suppose everyone will have a differing
opinion on that, particularly in terms of goals. For me, I'd like to
see a single package, which includes a GUI designer, script editor
with colorizing, debugger, interactive console, some sort of module
browser for functions and syntax, resource viewer, something similar
to package manager... and a basic set of modules for x-plat
development work. Then, some tool which helps to output the whole
thing as a runtime package.
I wholly agree that this would be a utopian environment!
As a Director user myself, I have gone through some of the same
problems as you have.
I wanted to make a cross platform software that used pyGame for drawing
and wxPython for Menus and GUI buttons, etc. This is not possible as 
wxPython
does not support the pyGame thread. This is a big problem. No way of 
drawing
2D in python and use wxPython.

Solutions:
- Do 2D stuff in OpenGL (quite awkward) as pyOpenGL works with wxPython
- Don't use wxPython but native libraries on each of the 3 platforms I 
want to write for.

For this reason I am now using Java and I draw on a Canvas inside the
Swing GUI elements and this is easily done and cross platform.
I might be missing some solutions, but I tried for months and gave up.
Python rocks and is extremely nice, the user community as well, but as 
you
say, a lot of the time (for me) has been wasted by trying to figure out 
a workable
environment for what I wanted to do without luck.

Multimedia in Python is problematic but possible (as the list will 
assure you).

good luck and thanks for bringing up those issues, it is by discussion
that things progress.
thor

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


[Pythonmac-SIG] app on top

2005-05-31 Thread thor

Hi list

This might be an OS question, rather than a Python one, but I am
wondering if there is a way to tell an application to be always on
top (or in front) of other applications running.

I'd like to create a GUI in python and it should stay on top of
other background applications to which the GUI communicates.

Any ideas?

thor

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


[Pythonmac-SIG] packagemanager for Tiger

2005-10-20 Thread thor


hi there

I need to install Pygame and PyOpenGL on Tiger. I used to use the  
PackageManager
from MacPython to install all the dependencies but when I went to  
check MacPython
now, there is no installer for Tiger. Can I just use the Panther  
installer safely then?

Or is there a newer/better version of MacPython and packagemanager  
that I could
use. I saw info on PackMan on the wiki, but the link was dead.

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


Re: [Pythonmac-SIG] packagemanager for Tiger

2005-10-20 Thread thor
hi againSorry, I should have made it clear that I am trying to install PyGame.Is Pygame working on Tiger? Is sdl-ttf a dependency? I can't installthat as the server seems to be down, but the rest of the sdl libs areinstalled now.> Your best bet is to first of all get the packages you can from Bob's> site (http://pythonmac.org/packages/), and get used to using the> command-line to install anything else you need.Thanks Jack.Yes, I've installed SDL and Numeric using Fink, I've installed PyObjCand trying to install pygame in the Terminal. I get some errors that indicate that SDL is not properly installed.Is SDL not working on Tiger yet?Here is the process;thm-mac-pb:~/Desktop/pygame-1.7.1release thm$ python setup.py bdist_mpkgUsing Darwin configuration...running bdist_mpkginstalling to build/bdist.darwin-8.2.0-Power_Macintosh/mpkgrunning buildrunning build_pyrunning build_extbuilding 'pygame.base' extensiongcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/NEED_INC_PATH_FIX -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/base.c -o build/temp.darwin-8.2.0-Power_Macintosh-2.3/src/base.oIn file included from src/base.c:24:src/pygame.h:63:17: error: SDL.h: No such file or directoryIn file included from src/base.c:24:src/pygame.h:228: error: parse error before 'SDL_VideoInfo'src/pygame.h:228: warning: no semicolon at end of struct or unionsrc/pygame.h:229: warning: type defaults to 'int' in declaration of 'PyVidInfoObject'src/pygame.h:229: warning: data definition has no type or storage classsrc/pygame.h:254: error: parse error before 'SDL_Surface'src/pygame.h:254: warning: no semicolon at end of struct or unionsrc/pygame.h:258: error: parse error before '}' tokensrc/pygame.h:258: warning: type defaults to 'int' in declaration of 'PySurfaceObject'src/pygame.h:258: warning: data definition has no type or storage classsrc/base.c: In function 'CheckSDLVersions':src/base.c:62: error: 'SDL_version' undeclared (first use in this function)src/base.c:62: error: (Each undeclared identifier is reported only oncesrc/base.c:62: error: for each function it appears in.)src/base.c:62: error: parse error before 'compiled'src/base.c:63: error: syntax error before '*' tokensrc/base.c:64: warning: implicit declaration of function 'SDL_VERSION'src/base.c:64: error: 'compiled' undeclared (first use in this function)src/base.c:65: error: 'linked' undeclared (first use in this function)src/base.c:65: warning: implicit declaration of function 'SDL_Linked_Version'src/base.c: In function 'init':src/base.c:168: warning: implicit declaration of function 'SDL_Init'src/base.c:172: error: 'SDL_INIT_TIMER' undeclared (first use in this function)src/base.c:173: error: 'SDL_INIT_NOPARACHUTE' undeclared (first use in this function)src/base.c: In function 'atexit_quit':src/base.c:243: warning: implicit declaration of function 'SDL_Quit'src/base.c: In function 'get_sdl_version':src/base.c:254: error: syntax error before '*' tokensrc/base.c:258: error: 'v' undeclared (first use in this function)src/base.c: At top level:src/base.c:387: error: parse error before 'Uint32'src/base.c:388: warning: function declaration isn't a prototypesrc/base.c: In function 'UintFromObj':src/base.c:391: error: 'obj' undeclared (first use in this function)src/base.c:395: error: 'val' undeclared (first use in this function)src/base.c:395: error: 'Uint32' undeclared (first use in this function)src/base.c:395: error: parse error before 'PyInt_AsLong'src/base.c: At top level:src/base.c:402: error: parse error before 'UintFromObjIndex'src/base.c:402: error: parse error before 'Uint32'src/base.c:403: warning: return type defaults to 'int'src/base.c:403: warning: function declaration isn't a prototypesrc/base.c: In function 'UintFromObjIndex':src/base.c:406: error: 'obj' undeclared (first use in this function)src/base.c:406: warning: passing argument 2 of 'PySequence_GetItem' makes integer from pointer without a castsrc/base.c:409: error: 'val' undeclared (first use in this function)src/base.c: At top level:src/base.c:415: error: parse error before 'Uint8'src/base.c:416: warning: function declaration isn't a prototypesrc/base.c: In function 'RGBAFromObj':src/base.c:418: error: 'Uint32' undeclared (first use in this function)src/base.c:418: error: parse error before 'val'src/base.c:419: error: 'obj' undeclared (first use in this function)src/base.c:420: error: 'RGBA' undeclared (first use in this function)src/base.c:429: error: 'val' undeclared (first use in this function)src/base.c:431: error: 'Uint8' undeclared (first use in this function)src/base.c:431: error: parse error before 'val'src/base.c:434: error: parse error before 'val'src/base.c:437: error: parse error before 'val'src/base.c:442: error: parse error before 'val'src/base.c:444: error: parse error before numeric constantsrc/base.c: In function 'get_error':src/base.c:464: warning: implicit declarat

[Pythonmac-SIG] py2app problems

2006-10-30 Thread thor

Hi list

I'm trying to build an app with py2app. The project is using pygame and
pyOpenGL and all that is imported in the main file.

I'm on PowerBook, OS X 10.4.6

I try to build the setupfile with py2applet as recommended but I get  
this:

thm21-mac-pb:~/Desktop/opengl thm21$ py2applet --make-setup myApp.py
Traceback (most recent call last):
   File "/usr/local/bin/py2applet", line 2, in ?
 from py2app.scripts.script_py2applet import main
ImportError: No module named scripts.script_py2applet
thm21-mac-pb:~/Desktop/opengl thm21$


Ok. so I copy a py2app setup file from the pygame example folder of  
py2app and make this:

from setuptools import setup

setup(
 app=["myApp.py"],
 setup_requires=["py2app"],
)


Run this in the command line: python setup.py py2app

But after a while I get the following message:
(myApp.app is now 8.6 MB)

stripping SDL
stripping SDL_mixer
stripping _File.so
stripping zlib.so
/usr/bin/strip: for architecture i386 object: /Users/thm21/Desktop/ 
opengl/dist/myApp.app/Contents/MacOS/stripped malformed object  
(unknown flavor for flavor number 0 in LC_UNIXTHREAD command 10 can't  
byte swap it)
stripping saved 4548552 bytes (7711040 / 12259592)
thm21-mac-pb:~/Desktop/opengl thm21$


Could someone tell me how to proceed?

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


Re: [Pythonmac-SIG] Problems with py2app for i386

2006-10-31 Thread thor
On 31 Oct 2006, at 06:09, Chris Van Bael wrote:


> Strange because I followed that manual exactly.
> But I'll try again...
>

If you check my mail from yesterday, I was also having problems with
this i386 biteswapping thing. I think my py2app script is stopping at  
the
same place as yours.  (I'm on OSX 10.4.6)

And I followed the instructions as well.

Is this because of recent additions for MacIntel universal support?

thor

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