Re: Mac e programmazione
thefreezer <thefreezerNOSPAM@xxxxxxxx> wrote:
...
> 1. cosa mi serve x creare una finestra con editfield, pulsanti e
> quant'altro e poi programmarci in python? (dai tutorial in rete vedo che
> si possono creare applicazioni a 'riga di comando'
Xcode, che istalli dal mpkg o /Installers, per creare le GUI; pyobjc,
scaricabile dalla rete, per programmarle poi in Python.
> 2. una volta creato un programma posso compilarlo in modo che funzioni
> senza python? posso farlo anche per windows? (vorrei creare applicazioni
> con il mio mac e poi, eventualmente creare l'eseguibile che giri anche
> su win)
Su Mac, Python e` parte dell'OS, come lo e` Aqua per le GUI; puoi
impacchettare la tua applicazione in una .app con py2app (mi pare che
oggi sia parte di pyobjc, una volta era scaricabile a parte)
semplicemente per comodita`. Se programmi in Python2.4 (non col 2.3
compreso nel MacOS) py2app ti risolve anche quel problema (impacchetta
la macchina virtuale di Python 2.4 assieme alla tua app).
Per creare un binario eseguibile su Windows (ad esempio con py2exe,
scaricabile) devi avere un ambiente Windows; non puo`, a oggi, produrre
binari per Windows girando su altri OS (mancano anzitutto le DLL).
Inoltre su Windows non avresti Aqua, quindi una GUI fatta in Cocoa non
funzionera` mai; devi usare ambienti GUI cross-platform come wxPython o
PyQt, scaricabili a parte (PyQt, e Qt che gli sta sotto, richiede una
licenza se vuoi usarlo su/per Windows con applicazioni non GPL).
> 3. Cosa devo scaricare (mi pare che sia tutto opensource) per fare tutto
> ciò (ho un mac mini con tiger)
pyobjc di certo. Eventualmente Python2.4 e ammennicoli; forse un
ambiente GUI cross-platform se proprio devi.
Parti da http://undefined.org/python/ e prendi Macpython 2.4.1 (il 2.4
produce codice piu` veloce, inoltre e` un pochino piu` ricco del 2.3),
TigerPython24fix, ed altre cose che ti servano (tipo, che so, flashticle
se vuoi leggere/scrivere file di Macromedia Flash); poi da
http://pythonmac.org/packages/ l'istaller di pyobjc (e altre cose che ti
servano, che so, macfile per interfacciarti ai resourcefork dei file
mac) -- pyobjc comprende py2app, quindi sei a posto.
http://pyobjc.sourceforge.net/ ha tutorial sull'uso di pyobjc, ecc ecc.
Alex
.
Relevant Pages
- Re: Will Apple EVER fix Window resizing?????
... the original Mac OS was MUCH better than anything else and its GUI ... its primitive manual memory allocation for apps, left much to be desired, ... Windows, it was necessary to use an uninstaller to erase many apps. ... (comp.sys.mac.advocacy) - Re: mac os x
... your Mac OS desktop system remained separate. ... I still recall my early transition out of the "Windows only" (not really ... What this did was to make me learn how to properly admin the ... Better to learn the system first and then if you wish to add a GUI later it ... (comp.unix.bsd.freebsd.misc) - Re: osx usability for a windows/linux user
... windows, but which works flawlessly under linux. ... Is net productivity the reason the Mac experience is so lauded? ... that the GUI was better. ... (comp.sys.mac.system) - Re: Sockets on Windows and Mac
... > I am new to Python and have been writing some socket based programmes ... > on Windows, however I am unable to get them to work ... > on Mac. ... (comp.lang.python) - Re: Will Apple EVER fix Window resizing?????
... the original Mac OS was MUCH better than anything else and its ... was cleaner and in many ways better than the GUI in OSX. ... its primitive manual memory allocation for apps, left much to be desired, ... Windows, it was necessary to use an uninstaller to erase many apps. ... (comp.sys.mac.advocacy) |
|