elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Trabajando con las ramas de git (tercera parte)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  problema con python y gtk
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: problema con python y gtk  (Leído 2,010 veces)
Belial & Grimoire


Desconectado Desconectado

Mensajes: 559


Tea_Madhatter


Ver Perfil
problema con python y gtk
« en: 26 Diciembre 2010, 03:40 am »

hola

teng un problema en python... hoce un boton con GTK y quiero pasarle informacion desde un Entry, pero por lguna razon se cierr el programa

si en el boton hgo esto y utilizo callback usando data para recuperar el link me funciona bien

def callback (self, widget, data):

self.button1.connect("clicked", self.callback,"http://www.google.com.mx")

pero quise hacer un entry para escribir la direccion y despues mandarla a callback pero se cierra el progrma, lo he intentado asi

def callback (self, widget, data):

self.button1.connect("clicked", self.entry.get_text())

lguien sabe cual es la forma de hacerlo bien

salu2


En línea

.                                 
leogtz
. . .. ... ..... ........ ............. .....................
Colaborador
***
Desconectado Desconectado

Mensajes: 3.069


/^$/


Ver Perfil WWW
Re: problema con python y gtk
« Respuesta #1 en: 26 Diciembre 2010, 06:05 am »

Conoces las reglas, coloca el código con su respectiva etiqueta.


En línea

Código
  1. (( 1 / 0 )) &> /dev/null || {
  2. echo -e "stderrrrrrrrrrrrrrrrrrr";
  3. }
  4.  
http://leonardogtzr.wordpress.com/
leogutierrezramirez@gmail.com
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
(Python)Existen ventanas de entrada y salida de datos en python « 1 2 »
Scripting
tonilogar 11 15,559 Último mensaje 29 Noviembre 2009, 00:49 am
por tonilogar
Python - Problema
Scripting
h0oke 1 2,522 Último mensaje 14 Noviembre 2009, 17:35 pm
por h0oke
[python]VideoTraining Aprende A Programar En Python desde 0 « 1 2 3 »
Scripting
juh 22 17,385 Último mensaje 16 Octubre 2010, 13:12 pm
por Pere Navarro
Problema con python y len
Scripting
eagle17 1 2,421 Último mensaje 5 Mayo 2011, 17:54 pm
por eagle17
Problema en Python
Scripting
WaAYa HaCK 6 5,562 Último mensaje 20 Mayo 2011, 03:39 am
por criskapunk
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines