Sebastian Lara escribió:
2006/12/27, Felipe Barros S. <[EMAIL PROTECTED]>:
Hola Sebastian:

Lo primero que debes hacer es documentar tu programa especificando que
requiere para ser ejecutado, yo en mi Ubuntu Edgy tuve que instalar:
tetex-base, dvipng y feh.

Lo otro es especificar el autor y la licencia del programa y luego
solicitar a Fabian una cuenta en el cvs.


Felicitaciones!!!


Gracias! :D

por ahora, agregué la licencia y los datos de autor como también un
README con los requerimientos actuales. Creo que hay algunas cosas
como feh (visualizador de imágenes) que no deberían ser necesarias.


Puedes reemplazar feh por gtk.Image

el programa está en [1]

Saludos

[1]: http://www.udec.cl/~slara/pytexipng-0.1.tar.bz2

diff -Naur pytexipng_ori/pytexipng pytexipng_new/pytexipng
--- pytexipng_ori/pytexipng	2006-12-13 16:23:15.000000000 -0300
+++ pytexipng_new/pytexipng	2006-12-27 17:29:39.000000000 -0300
@@ -30,6 +30,7 @@
 	
 	scrollwin = self.wTree.get_widget('scroll')
 	self.prefs = self.wTree.get_widget('pref_dialog')
+	self.image = self.wTree.get_widget('image1')
 	view.show()
 	scrollwin.add(view)
 	scrollwin.show()
@@ -57,7 +58,9 @@
 	tex = tex_template % { 'env' :  environment, 'eqn' : equation}
 	print tex
 	pic_create(self,tex)
-	os.system('feh texipng1.png &')
+	self.image.set_from_file("texipng1.png")
+	self.image.show()
+	#os.system('feh texipng1.png &')
 
     def button2_clicked(self, widget): 
 	self.prefs.run()
diff -Naur pytexipng_ori/pytexipng.glade pytexipng_new/pytexipng.glade
--- pytexipng_ori/pytexipng.glade	2006-12-12 17:25:26.000000000 -0300
+++ pytexipng_new/pytexipng.glade	2006-12-27 17:21:05.000000000 -0300
@@ -386,6 +386,21 @@
       </child>
 
       <child>
+	<widget class="GtkImage" id="image1">
+	  <property name="visible">True</property>
+	  <property name="xalign">0.5</property>
+	  <property name="yalign">0.5</property>
+	  <property name="xpad">0</property>
+	  <property name="ypad">0</property>
+	</widget>
+	<packing>
+	  <property name="padding">11</property>
+	  <property name="expand">False</property>
+	  <property name="fill">True</property>
+	</packing>
+      </child>
+
+      <child>
 	<widget class="GtkHButtonBox" id="hbuttonbox1">
 	  <property name="border_width">3</property>
 	  <property name="visible">True</property>
@@ -415,8 +430,8 @@
 	  </child>
 	</widget>
 	<packing>
-	  <property name="padding">11</property>
-	  <property name="expand">False</property>
+	  <property name="padding">0</property>
+	  <property name="expand">True</property>
 	  <property name="fill">True</property>
 	</packing>
       </child>

Responder a