Re: [Python] "terminale alternativo"

2008-09-21 Per discussione luciano fornari

Alessandro Dentella ha scritto:

On Sat, Sep 20, 2008 at 03:30:42PM +0200, luciano fornari wrote:
  

Ciao a tutti,
ho scritto un programmino (di dubbia utilit ) che funziona come console.

Ecco il semplicissimo codice:

import os

while 1:
command = raw_input("she11: ")
os.system(command)

L'ho provato (su linux) eseguendo alcuni comandi come 'pwd' e 'date' e fin qui
tutto ok. Poi ho provato a cambiare cartella digitando 'cd /' per andare alla
root directory e niente, 'pwd', sono nella stessa cartella di prima, 'cd /home/




 il cambio di cartella c'è stato... ma nella shell che è stata generata
 apposta da os.system e prontamente distrutta all'uscita da detto comando...


*:-)
___


  

ok adesso ho capito, grazie a tutti! :)
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] Interfaccia Db

2008-09-21 Per discussione Massimo Capanni
Salve a tutti,

esiste un modulo in python per interfacciarsi con i database come DBI in Perl?
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] [ANNOUNCE] PyGoocanvas 0.12.0

2008-09-21 Per discussione Gian Mario Tagliaretti
I am pleased to announce version 0.12.0 of the Python bindings for Goocanvas.

It is available at:

http://download.gnome.org/sources/pygoocanvas/0.12/

The bindings are updated with the new Goocanvas API

PyGooCanvas 0.12.0  (Sep 21 2008)
==

 o wrap goocanvas.Points fields (Gian Mario)
 o add a gradient demo to test fill_pattern (Gian Mario)
 o wrap Item.get_requested_area() and  Item.update() (Gian Mario)
 o wrap Item.get_transform_for_child() (Gian Mario)
 o manually wrap Item.set_transform() and ItemModel.set_transform(). It' is now
   possible to use None to unset the matrix (Gian Mario)
 o manually wrap goocanvas.create_cairo_context() and fix a bad API change
   in Pycairo. (Gian Mario)
 o demo play (and drag around...) a flash file into a canvas item. (Gian Mario)
 o some docs fixes. (Gian Mario)

Blurb:
==

Goocanvas [1] is a canvas widget for GTK+, It is similar in many ways
to  FooCanvas, hence the name, but it uses cairo for rendering, it has
an optional  model/view split, and uses interfaces for items & views
(so you can easily turn any application object into a canvas item or
view).

PyGooCanvas is a wrapper which exposes the goocanvas API to the
python world.  It is fairly complete; most of the API are covered.

The documentation is done, anyway bug reports on docs are really
important to improve the documentation.

Like the GTK+ library, PyGTK and GooCanvas itself PyGooCanvas is
licensed under  the GNU LGPL, so is suitable for use in both
free software and proprietary applications.

PyGooCanvas requires:
=

 o Goocanvas >= 0.10.0
 o PyGObject >= 2.10.1 (2.11.3 to build the docs)
 o PyGTK >= 2.10.4
 o PyCairo >= 1.4.0

Bug reports should go to
http://bugzilla.gnome.org/

[1] http://live.gnome.org/GooCanvas

cheers
-- 
Gian Mario Tagliaretti
GNOME Foundation member
[EMAIL PROTECTED]
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Interfaccia Db

2008-09-21 Per discussione MauX
Il giorno dom, 21/09/2008 alle 15.30 +0200, Massimo Capanni ha scritto:
> esiste un modulo in python per interfacciarsi con i database come DBI
> in Perl?

oh yes: http://wiki.python.org/moin/DatabaseProgramming


___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python