Changes

Jump to navigation Jump to search
m
Line 14: Line 14:     
== ¿Dónde puedo ver los cambios de la API? ==
 
== ¿Dónde puedo ver los cambios de la API? ==
API changes between OLPC releases can be seen here: [[Development Team/Almanac/API Changes|API Changes]]
+
Cambios de API entre los releases de OLPC pueden ser vistos aqui: [[Development Team/Almanac/API Changes|API Changes]]
    
== Comenzando ==
 
== Comenzando ==
Line 146: Line 146:     
=== ¿Cómo puedo rastrear la posición del ratón? ===
 
=== ¿Cómo puedo rastrear la posición del ratón? ===
 +
 
Existen varias razones por las que te puede interesar controlar la posición del ratón, que van desde el entretenimiento ([[http://en.wikipedia.org/wiki/Xeyes]]) a lo funcional (ocultar ciertas ventanas cuando el ratón no se ha movido por un par de segundos y volver a hacer aparecer esos elementos cuando este se mueva nuevamente). Esta es una manera en la cual se puede implementar esta funcionalidad:
 
Existen varias razones por las que te puede interesar controlar la posición del ratón, que van desde el entretenimiento ([[http://en.wikipedia.org/wiki/Xeyes]]) a lo funcional (ocultar ciertas ventanas cuando el ratón no se ha movido por un par de segundos y volver a hacer aparecer esos elementos cuando este se mueva nuevamente). Esta es una manera en la cual se puede implementar esta funcionalidad:
 
<pre>
 
<pre>
Line 220: Line 221:     
[http://lists.laptop.org/pipermail/devel/2008-June/015923.html reliably detecting if running on an XO]
 
[http://lists.laptop.org/pipermail/devel/2008-June/015923.html reliably detecting if running on an XO]
[[olpc:Power Management Interface]]</ref>
+
[[olpc:Power Management Interface]]
    
<pre>
 
<pre>
Line 238: Line 239:  
</pre>
 
</pre>
   −
=== How do I repeatedly call a specific method after N number of seconds? ===
+
=== ¿Cómo llamar repetidamente a un método específico después de un número N de segundos? ===
The gobject.timeout_add() function allows you to invoke a callback method after a certain amount of time. If you want to repeatedly call a method, simply keep invoking the gobject.timeout_add function in your callback itself. The code below is a simple example, where the callback function is named repeatedly_call. Note that the timing of the callbacks are approximate. To get the process going, you should make an initial call to repeatedly_call() somewhere in your code.  
+
La función gobject.timeout_add() te permite invocar un método después de un período de tiempo determinado. Si quieres llamar a un método en varias ocasiones, simplemente sigue llamando a la función de gobject.timeout_add desde tu función.
 +
El código de abajo es un ejemplo simple en donde la función que implementa el timeout se llama repeatedly_call. Nota que la sincronización entre las llamadas son aproximadas. Para que esto funcione debes llamar a repeatedly_call() desde alguna parte de tu código.
   −
You can see a more substantive example of this pattern in use when we [[olpc:Pango#How_do_I_dynamically_set_the_text_in_a_pango_layout.3F | regularly update the time displayed on a pango layout object]].  
+
Puedes ver un mejor ejemplo de este patrón en uso [[olpc:Pango#How_do_I_dynamically_set_the_text_in_a_pango_layout.3F | aquí]].  
    
<pre>
 
<pre>
   −
#This method calls itself ROUGHLY every 1 second
+
#Este método se llama a sí mismo aproximadamente cada 1 segundo
 
def repeatedly_call(self):
 
def repeatedly_call(self):
 
now = datetime.datetime.now()
 
now = datetime.datetime.now()
Line 251: Line 253:  
</pre>
 
</pre>
    +
=== ¿Cómo puedo actualizar la build que se ejecuta en mi XO? ===
   −
=== How do I update the current build version of code that is running on my XO? ===
+
Hay varias páginas que te dan instrucciones sobre cómo instalar / actualizar la build actual.  
 
  −
There are several pages that give you instructions on how to install/update your current build.
  −
 
  −
* If you already have a working build installed and an internet connection, first try [[olpc:olpc-update]].
  −
* If that doesn't work, you can look at instructions for an [[olpc:Activated upgrade]] that can be done via USB] boot.  
     −
As the instructions on the pages linked above note, make sure to install your activities separately after you have upgraded to a specific base build.
+
* Si usted ya tiene una build instalada y una conexión a Internet, primero pruebe usar [[OLPC: OLPC-update]].
 +
* Si eso no funciona, puedes mirar las instrucciones para una [[OLPC: Activated upgrade]] que se puede hacer a través de un USB]
    +
Como mencionan las instrucciones en las páginas más arriba, asegurate de instalar tus actividades por separado luego de que actualices a una build específica.
   −
=== I am developing on an XO laptop, but my keyboard and language settings are not ideal. How can I change them? ===
+
=== Estoy desarrollando en una XO pero mi teclado y la configuración de idioma no son ideales. ¿Cómo puedo cambiarlos? ===
   −
Internationalized laptops will often have settings that might slow you down while developing. To change around the language settings so you can better understand environment messages, use the [[olpc:Sugar Control Panel]]
+
Las laptops intenacionalizadas tienen configuraciones que te pueden retrazar mientras estás desarrollando. Para cambiar las configuraciones de idioma usa el [[olpc:Sugar Control Panel]]
    
Keyboard settings on internationalized laptops<ref>[[olpc:Keyboard layouts#OLPC keyboard layouts]]</ref> can also be suboptimal, especially as characters like "-" and "/" are in unfamiliar positions. You can use the <tt>setxkbmap</tt> command in the [[olpc:Terminal Activity]] to reset the type of keyboard input used and then attach a standard U.S. keyboard that will allow you to type normally. The command below sets the keyboard to the US mapping (it will reset to the default internationalized mapping upon restart).  
 
Keyboard settings on internationalized laptops<ref>[[olpc:Keyboard layouts#OLPC keyboard layouts]]</ref> can also be suboptimal, especially as characters like "-" and "/" are in unfamiliar positions. You can use the <tt>setxkbmap</tt> command in the [[olpc:Terminal Activity]] to reset the type of keyboard input used and then attach a standard U.S. keyboard that will allow you to type normally. The command below sets the keyboard to the US mapping (it will reset to the default internationalized mapping upon restart).  
Line 336: Line 336:  
</pre>
 
</pre>
   −
=== What packages are available on sugar to support game development? ===
+
=== ¿Qué paquetes están disponibles dentro de Sugar para el desarrollo de juegos? ===
   −
If your activity will require tools that are typically needed to develop robust and clean video games, then you should utilize the [http://www.pygame.org/ pygame package]. It can be readily imported into any activity:
+
Si tu actividad requiere herramientas para desarrollar juegos robustos y límpios deberías utilizar [http://www.pygame.org/ pygame]. Puedes importar el paquete para usarlo con cualqueir actividad de la siguiente forma:
    
<pre>
 
<pre>
Line 411: Line 411:  
</pre>
 
</pre>
   −
=== How do i remove an specific button from the toolbar? ===
+
=== ¿Cómo elimino un botón específico de la barra de herramientas? ===
   −
This is an example of the share button is removed:
+
Aquí hay un ejemplo de como borrar el botón de compartir:
    
<pre>
 
<pre>
Line 422: Line 422:     
== Notes ==
 
== Notes ==
<references />
+
 
    
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Development Team]]
 
[[Category:Development Team]]

Navigation menu