Changes

Jump to navigation Jump to search
375 bytes added ,  14:15, 5 April 2012
Line 52: Line 52:  
The [http://activities.sugarlabs.org/en-US/sugar/addons/versions/4085#version-2 original version of XOEditor] was written in Javascript and bundled into an instance of Browse. The original [[Activities/XoEditor/XoEditor.xml|XML file]] is in the wiki. As of Version 3, XOEditor has been rebased to Python.
 
The [http://activities.sugarlabs.org/en-US/sugar/addons/versions/4085#version-2 original version of XOEditor] was written in Javascript and bundled into an instance of Browse. The original [[Activities/XoEditor/XoEditor.xml|XML file]] is in the wiki. As of Version 3, XOEditor has been rebased to Python.
   −
The XO colors are stored using gconf.
+
The XO colors are stored using gconf:
    +
<code>~/.gconf/desktop/user/%gconf.xml</code>
 +
 +
<code>
 +
<?xml version="1.0"?>
 +
<gconf>
 +
<entry name="color" mtime="1333639070" type="string">
 +
<stringvalue>#00A0FF,#005FE4</stringvalue>
 +
</entry>
 +
<entry name="nick" mtime="1333490344" type="string">
 +
<stringvalue>Walter Bender</stringvalue>
 +
</entry>
 +
</gconf>
 +
</code>
 +
 +
The Python code used to write to gconf:
 +
 +
<code>
 
  client = gconf.client_get_default()
 
  client = gconf.client_get_default()
 
  client.set_string('/desktop/sugar/user/color', '%s,%s' % (
 
  client.set_string('/desktop/sugar/user/color', '%s,%s' % (
 
     self._game.colors[0], self._game.colors[1]))
 
     self._game.colors[0], self._game.colors[1]))
 +
</code>
    
== Credits ==
 
== Credits ==
    
XOEditor was written and is maintained by [[User:Walter]].
 
XOEditor was written and is maintained by [[User:Walter]].

Navigation menu