[pyar] La muerte de PyGTK?,que pasa con Wx?
Rodolfo Hugo González
lu8ekg en gmail.com
Sab Nov 6 12:30:10 ART 2010
El 06/11/10 11:45, John Rowland Lenton escribió:
> On Wed, 3 Nov 2010 21:51:11 -0300, Juan Carlos Ojeda <juancarlospaco en gmail.com> wrote:
>
> Ufa.
>
> Bueno, acá te dejo dos programas. Vos decime cuál es la diferencia.
>
> con PyGtk:
>
> import gtk
>
> l = gtk.Label()
> l.set_markup("<big><b>Hola, PyAr</b></big>\n\nShut up and show me the code.")
> w = gtk.Window()
> w.set_border_width(16)
> w.connect("delete-event", lambda *_: gtk.main_quit())
> w.add(l)
> w.show_all()
>
> gtk.main()
>
> con gobject introspection:
>
> from gi.repository import Gtk
>
> l = Gtk.Label()
> l.set_markup("<big><b>Hola, PyAr</b></big>\n\nShut up and show me the code.")
> w = Gtk.Window()
> w.set_border_width(16)
> w.connect("delete-event", lambda *_: Gtk.main_quit())
> w.add(l)
> w.show_all()
>
> Gtk.main()
>
Juan, las mayúsculas en las órdenes de gtk/GTK.- :-)
Siii, son =.
Saludos.
--
*** Rodolfo H. González - Pigüé ***
*** Usuario Full Software Libre ***
** Desarrollos de Software Libre **
** Clave GPG: en servidores **
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20101106/96b9b2dd/attachment.sig>
More information about the pyar
mailing list