Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move activity specific bits to it's own package

  • Loading branch information...
commit 188489c6a4877577d3e9ba24acb8c97eaee6ff0a 1 parent 729e2c4
Luke Closs authored
View
BIN  OnePageWikiActivity-1.xo
Binary file not shown
View
39 OnePageWikiActivity.py
@@ -1,39 +0,0 @@
-from sugar.activity import activity
-from sugar import env
-import os
-import gtk
-import gobject
-import hulahop
-hulahop.startup(os.path.join(env.get_profile_path(), 'gecko'))
-from XOCom import XOCom
-
-class OnePageWikiActivity (activity.Activity):
- def __init__(self, handle):
- activity.Activity.__init__(self, handle)
- self.set_title('OnePageWiki')
-
- # The XOCom object helps us communicate with the browser
- # This uses web/index.html as the default page to load
- self.xocom = XOCom()
-
- toolbox = activity.ActivityToolbox(self)
- self.set_toolbox(toolbox)
- toolbox.show()
-
- self.set_canvas( self.xocom.create_webview() )
-
- def write_file(self, filename):
- content = self.xocom.send_to_browser('write')
- if content:
- fh = open(filename, 'w')
- fh.write(content)
- fh.close()
-
- def read_file(self, filename):
- fh = open(filename, 'r')
- content = fh.read()
- # We must delay this to give the browser time to start up
- # It would be better if this send_to_browser was instead triggered
- # once the browser had finished loading.
- gobject.timeout_add(2000, self.xocom.send_to_browser, 'read', content)
-
View
588 activity/activity-onepagewiki.svg
@@ -1,588 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://web.resource.org/cc/"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- version="1.0"
- width="727.58679"
- height="496.2915"
- viewBox="0 0 215.9 279.4"
- id="svg2"
- xml:space="preserve"
- sodipodi:version="0.32"
- inkscape:version="0.44.1"
- sodipodi:docname="yamazaki_yamazaki2.svg"
- sodipodi:docbase="C:\Documents and Settings\Molumen\Desktop"><metadata
- id="metadata96"><rdf:RDF><cc:Work
- rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:creator><cc:Agent><dc:title></dc:title></cc:Agent></dc:creator><dc:date>November 24</dc:date><dc:title>yamazaki</dc:title><cc:license
- rdf:resource="http://web.resource.org/cc/PublicDomain" /><dc:description>pen and paper notes</dc:description><dc:subject><rdf:Bag><rdf:li>pen</rdf:li><rdf:li>paper</rdf:li><rdf:li>notes</rdf:li><rdf:li>block</rdf:li><rdf:li>yellow</rdf:li></rdf:Bag></dc:subject></cc:Work><cc:License
- rdf:about="http://web.resource.org/cc/PublicDomain"><cc:permits
- rdf:resource="http://web.resource.org/cc/Reproduction" /><cc:permits
- rdf:resource="http://web.resource.org/cc/Distribution" /><cc:permits
- rdf:resource="http://web.resource.org/cc/DerivativeWorks" /></cc:License></rdf:RDF></metadata><sodipodi:namedview
- inkscape:window-height="853"
- inkscape:window-width="1214"
- inkscape:pageshadow="2"
- inkscape:pageopacity="0.0"
- guidetolerance="10.0"
- gridtolerance="10.0"
- objecttolerance="10.0"
- borderopacity="1.0"
- bordercolor="#666666"
- pagecolor="#ffffff"
- id="base"
- inkscape:zoom="0.76161616"
- inkscape:cx="534.00368"
- inkscape:cy="187.42578"
- inkscape:window-x="628"
- inkscape:window-y="142"
- inkscape:current-layer="svg2" />
- <defs
- id="defs4">
- <style
- type="text/css"
- id="style6" />
- <clipPath
- id="id0">
- <path
- d="M 82.1474,119.596 L 119.2508,119.596 L 119.2508,132.5332 L 82.1474,132.5332 L 82.1474,119.596 L 82.1474,119.596 z "
- id="path9" />
- </clipPath>
- <linearGradient
- x1="167.96899"
- y1="107.538"
- x2="166.47701"
- y2="99.8638"
- id="id1"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:#aaa9a9;stop-opacity:1"
- offset="0"
- id="stop12" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.0588235"
- id="stop14" />
- <stop
- style="stop-color:#aaa9a9;stop-opacity:1"
- offset="0.14902"
- id="stop16" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.34902"
- id="stop18" />
- <stop
- style="stop-color:#aaa9a9;stop-opacity:1"
- offset="0.52156901"
- id="stop20" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="1"
- id="stop22" />
- </linearGradient>
- <linearGradient
- x1="157.761"
- y1="111.344"
- x2="154.655"
- y2="101.14"
- id="id2"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:#aaa9a9;stop-opacity:1"
- offset="0"
- id="stop25" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.101961"
- id="stop27" />
- <stop
- style="stop-color:#c2c1c1;stop-opacity:1"
- offset="0.25097999"
- id="stop29" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.568627"
- id="stop31" />
- <stop
- style="stop-color:#c2c1c1;stop-opacity:1"
- offset="0.721569"
- id="stop33" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="1"
- id="stop35" />
- </linearGradient>
- <linearGradient
- x1="90.049103"
- y1="89.718803"
- x2="101.403"
- y2="151.998"
- id="id3"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:#1f1a17;stop-opacity:1"
- offset="0"
- id="stop38" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.36078399"
- id="stop40" />
- <stop
- style="stop-color:#495677;stop-opacity:1"
- offset="0.419608"
- id="stop42" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.50980401"
- id="stop44" />
- <stop
- style="stop-color:#969594;stop-opacity:1"
- offset="0.60000002"
- id="stop46" />
- <stop
- style="stop-color:#495677;stop-opacity:1"
- offset="0.67058802"
- id="stop48" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.74117601"
- id="stop50" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="1"
- id="stop52" />
- </linearGradient>
- <linearGradient
- x1="34.386799"
- y1="141.595"
- x2="32.150101"
- y2="129.851"
- id="id4"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:#c2c1c1;stop-opacity:1"
- offset="0"
- id="stop55" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.0705882"
- id="stop57" />
- <stop
- style="stop-color:#c2c1c1;stop-opacity:1"
- offset="0.141176"
- id="stop59" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.470588"
- id="stop61" />
- <stop
- style="stop-color:#c2c1c1;stop-opacity:1"
- offset="0.63137299"
- id="stop63" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="1"
- id="stop65" />
- </linearGradient>
- <linearGradient
- x1="136.386"
- y1="112.042"
- x2="134.929"
- y2="103.586"
- id="id5"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:#838281;stop-opacity:1"
- offset="0"
- id="stop68" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.0588235"
- id="stop70" />
- <stop
- style="stop-color:#838281;stop-opacity:1"
- offset="0.141176"
- id="stop72" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0.40000001"
- id="stop74" />
- <stop
- style="stop-color:#838281;stop-opacity:1"
- offset="0.47843099"
- id="stop76" />
- <stop
- style="stop-color:#383431;stop-opacity:1"
- offset="0.83137298"
- id="stop78" />
- <stop
- style="stop-color:#838281;stop-opacity:1"
- offset="0.89019603"
- id="stop80" />
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="1"
- id="stop82" />
- </linearGradient>
- <radialGradient
- cx="128.304"
- cy="109.001"
- r="3.1809001"
- fx="128.304"
- fy="109.001"
- id="id6"
- gradientUnits="userSpaceOnUse">
- <stop
- style="stop-color:white;stop-opacity:1"
- offset="0"
- id="stop85" />
- <stop
- style="stop-color:#1f1a17;stop-opacity:1"
- offset="1"
- id="stop87" />
- </radialGradient>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <radialGradient
- cx="128.304"
- cy="109.001"
- r="3.1809001"
- fx="128.304"
- fy="109.001"
- id="radialGradient1957"
- xlink:href="#id6"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547876,0,0,2.547876,-137.801,-196.5739)" /><linearGradient
- x1="136.386"
- y1="112.042"
- x2="134.929"
- y2="103.586"
- id="linearGradient1960"
- xlink:href="#id5"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)" /><linearGradient
- x1="90.049103"
- y1="89.718803"
- x2="101.403"
- y2="151.998"
- id="linearGradient1963"
- xlink:href="#id3"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)" /><linearGradient
- x1="157.761"
- y1="111.344"
- x2="154.655"
- y2="101.14"
- id="linearGradient1973"
- xlink:href="#id2"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)" /><linearGradient
- x1="167.96899"
- y1="107.538"
- x2="166.47701"
- y2="99.8638"
- id="linearGradient1976"
- xlink:href="#id1"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)" /><linearGradient
- x1="34.386799"
- y1="141.595"
- x2="32.150101"
- y2="129.851"
- id="linearGradient1979"
- xlink:href="#id4"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)" /><linearGradient
- inkscape:collect="always"
- xlink:href="#id3"
- id="linearGradient1968"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)"
- x1="87.147919"
- y1="81.305374"
- x2="106.04489"
- y2="160.70155" /><linearGradient
- inkscape:collect="always"
- xlink:href="#id4"
- id="linearGradient1970"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.547877,0,0,2.547877,-137.801,-196.5739)"
- x1="35.837391"
- y1="141.60385"
- x2="32.150101"
- y2="129.851" /></defs>
- <path
- d="M 274.67973,63.408835 L 274.67973,63.408835 z M 86.098664,8.2969988 L 192.9701,52.090914 L 190.45483,72.20232 C 195.41529,71.040998 200.64966,69.926302 206.07154,68.888808 C 228.50916,64.595381 248.45239,62.716833 259.40903,63.496228 L 273.80429,61.784563 C 274.11768,62.336943 274.40915,62.877094 274.67949,63.406797 L 291.94261,60.00793 C 302.85594,58.469776 304.72073,70.690155 294.57508,72.942734 L 277.73465,76.814485 C 277.72394,77.454258 277.69872,78.110337 277.661,78.786542 L 255.36401,86.450044 C 232.20102,92.917319 209.25053,99.153244 186.32906,105.18992 L 179.98919,155.87967 L 109.23694,271.06127 L -15.271397,186.57393 L -11.08014,152.25863 C -20.042295,154.17285 -29.071459,156.07254 -38.176294,157.9595 L -77.161349,163.76866 C -76.760568,163.2359 -76.478773,162.58186 -76.301696,161.85062 C -77.615381,163.07971 -78.890592,163.94421 -79.398895,164.08689 C -80.718694,164.45684 -83.223257,162.79944 -84.301773,158.95317 C -85.380544,155.1069 -84.602677,151.26241 -83.283132,150.89246 C -82.745785,150.74188 -81.066735,150.69678 -79.191498,150.95564 C -79.774961,150.36122 -80.410146,149.96146 -81.069028,149.83712 L -44.924089,134.69663 C -32.320255,130.79583 -19.876428,127.05376 -7.5627963,123.45973 L -2.6005523,82.830531 L 86.098664,8.2969988 z "
- style="fill:none;stroke:#1f1a17;stroke-width:1.78351331"
- id="path168" /><polygon
- points="53.0638,109.662 101.931,142.822 129.822,97.5971 87.8768,80.4087 53.0638,109.662 "
- transform="matrix(2.547876,0,0,2.547876,-137.801,-196.5739)"
- style="fill:#fffcc8;stroke:#1f1a17;stroke-width:0.34999999"
- id="polygon91" /><polygon
- points="48.0907,150.38 96.9582,183.539 101.931,142.822 53.0638,109.662 48.0907,150.38 "
- transform="matrix(2.547876,0,0,2.547876,-137.801,-196.5739)"
- style="fill:#fffb9c;stroke:#1f1a17;stroke-width:0.34999999"
- id="polygon93" /><polygon
- points="124.727,138.333 96.9582,183.539 101.81,142.84 129.822,97.5971 124.727,138.333 "
- transform="matrix(2.547876,0,0,2.547876,-137.801,-196.5739)"
- style="fill:#fff974;stroke:#1f1a17;stroke-width:0.34999999"
- id="polygon95" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line97"
- y2="266.32678"
- x2="107.2328"
- y1="222.03709"
- x1="42.102196"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line99"
- y2="264.12543"
- x2="106.68346"
- y1="219.83569"
- x1="41.552868"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line101"
- y2="261.18771"
- x2="105.03397"
- y1="216.90054"
- x1="39.903378"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line103"
- y2="257.88565"
- x2="103.01885"
- y1="213.59595"
- x1="37.888256"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line105"
- y2="253.2995"
- x2="99.537712"
- y1="209.00977"
- x1="34.407085"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line107"
- y2="204.1739"
- x2="95.648865"
- y1="159.88419"
- x1="30.518269"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line109"
- y2="211.55511"
- x2="102.16201"
- y1="167.26791"
- x1="37.031406"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line111"
- y2="204.04395"
- x2="148.16493"
- y1="262.36996"
- x1="112.23886"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line113"
- y2="201.16995"
- x2="148.74072"
- y1="259.49335"
- x1="112.81313"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line115"
- y2="198.21188"
- x2="149.06689"
- y1="256.53784"
- x1="113.14106"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line117"
- y2="194.4334"
- x2="149.88727"
- y1="252.75935"
- x1="113.96122"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line119"
- y2="190.81793"
- x2="150.37906"
- y1="249.14392"
- x1="114.45348"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line121"
- y2="186.05594"
- x2="151.8568"
- y1="244.37941"
- x1="115.92996"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line123"
- y2="204.04395"
- x2="148.16493"
- y1="262.36996"
- x1="112.23886"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line125"
- y2="132.13016"
- x2="64.985428"
- y1="87.842964"
- x1="-0.14516971"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line127"
- y2="134.23471"
- x2="65.812477"
- y1="89.944977"
- x1="0.68186736"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line129"
- y2="137.15201"
- x2="67.363625"
- y1="92.862282"
- x1="2.2330253"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line131"
- y2="141.38148"
- x2="70.799171"
- y1="97.091766"
- x1="5.6685805"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line133"
- y2="162.52121"
- x2="82.162193"
- y1="118.23148"
- x1="17.031591"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line135"
- y2="167.27811"
- x2="86.390396"
- y1="122.98837"
- x1="21.259794"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line137"
- y2="172.29996"
- x2="90.618599"
- y1="128.01022"
- x1="25.488008"
- class="fil3 str1" /><path
- d="M 84.359738,23.545275 C 129.37409,29.44386 126.03179,47.247911 145.80917,58.597171 C 163.91234,68.985881 188.53934,56.40243 192.96959,52.091424 C 158.59924,77.110295 109.46626,90.405877 67.714718,101.096 C 45.342581,103.03136 34.274095,107.85297 -2.6010627,82.831041 C 61.193173,129.79731 113.72019,88.398406 84.359738,23.545275 L 84.359738,23.545275 z "
- style="fill:#fff974;stroke:#1f1a17;stroke-width:0.19414818"
- id="path139" /><path
- d="M -84.302283,158.95419 C -83.223767,162.80046 -80.719204,164.45786 -79.399405,164.08791 C -78.079859,163.7177 -71.594495,158.48309 -72.673264,154.63681 C -73.75178,150.79054 -81.963842,150.52352 -83.283641,150.89347 C -84.603187,151.26343 -85.381052,155.10792 -84.302283,158.95419 L -84.302283,158.95419 z "
- style="fill:#838281;stroke:#1f1a17;stroke-width:0.89175665"
- id="path141" /><path
- d="M -44.925364,134.69586 L -81.069536,149.83789 C -77.3397,150.5411 -74.380341,160.0722 -77.161859,163.76942 L -38.176804,157.96026 C -37.295238,153.94914 -25.004539,144.41677 -26.386761,140.15876 C -27.606174,136.40217 -42.274298,137.88886 -44.925364,134.69586 z "
- style="fill:url(#linearGradient1970);stroke:#1f1a17;stroke-width:0.89175665"
- id="path143" /><path
- d="M 274.67973,63.406287 L 291.94288,60.007421 C 302.85619,58.469268 304.72098,70.689647 294.57533,72.942224 L 277.73489,76.813977 L 277.73387,76.810154 C 277.77363,74.401647 272.75303,74.431713 272.27837,72.269585 C 271.80419,70.107457 275.87469,65.751353 274.68,63.408325 L 274.67973,63.406287 L 274.67973,63.406287 z "
- style="fill:url(#linearGradient1976);stroke:#1f1a17;stroke-width:0.89175665"
- id="path145" /><path
- d="M 249.2825,64.700609 L 273.80352,61.785073 C 277.25894,67.874499 278.01465,72.441056 277.66025,78.787052 L 255.36326,86.450554 C 254.89063,83.014488 245.04181,83.383931 244.25197,80.424062 C 242.38157,73.414345 249.2825,64.700609 249.2825,64.700609 z "
- style="fill:url(#linearGradient1973);stroke:#1f1a17;stroke-width:0.89175665"
- id="path147" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line149"
- y2="61.806229"
- x2="189.03542"
- y1="120.1322"
- x1="153.10782"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line151"
- y2="66.817894"
- x2="187.7997"
- y1="125.14385"
- x1="151.8721"
- class="fil3 str1" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line153"
- y2="74.576164"
- x2="184.85435"
- y1="132.90215"
- x1="148.92931"
- class="fil3 str1" /><g
- transform="matrix(1.34897,0,0,1.34897,-27.58367,-107.9965)"
- id="_223535000">
- <g
- id="g156">
- </g>
- </g><polygon
- points="82.5532,125.881 117.249,117.903 117.885,120.63 82.5532,129.059 82.5532,125.881 "
- transform="matrix(2.547876,0,0,2.547876,-137.801,-196.5739)"
- style="fill:#1f1a17;stroke:#1f1a17;stroke-width:0.0762"
- id="polygon158" /><line
- style="fill:none;stroke:#1f1a17;stroke-width:0.19414818"
- id="line160"
- y2="86.637817"
- x2="179.60829"
- y1="144.96382"
- x1="143.68065"
- class="fil3 str1" /><path
- d="M -44.924599,134.69841 C 58.455735,102.7032 151.07536,81.388433 249.28377,64.701882 C 249.28377,64.701882 253.76981,74.875044 255.36401,86.451829 C 158.28509,113.55715 64.938296,136.59581 -38.176804,157.96077 C -36.517373,150.40912 -39.26704,141.50914 -44.924344,134.69841 L -44.924599,134.69841 z "
- style="fill:url(#linearGradient1963);stroke:#1f1a17;stroke-width:0.89175665"
- id="path162" /><path
- d="M 206.07052,68.889316 C 239.44234,62.503575 267.2965,61.45971 268.27208,66.558011 C 269.24766,71.656821 242.97573,80.969818 209.60416,87.355559 C 176.23258,93.741048 148.37818,94.785167 147.4026,89.686357 C 146.42702,84.588057 172.69895,75.27506 206.07052,68.889316 z "
- style="fill:url(#linearGradient1960);stroke:#1f1a17;stroke-width:0.89175665"
- id="path164" /><path
- d="M 189.10167,74.57108 C 193.577,74.57108 197.20621,77.515407 197.20621,81.146385 C 197.20621,84.777873 193.577,87.722454 189.10167,87.722454 C 184.62682,87.722454 180.99763,84.777873 180.99763,81.146385 C 180.99763,77.515407 184.62682,74.57108 189.10167,74.57108 L 189.10167,74.57108 z "
- style="fill:url(#radialGradient1957)"
- id="path166" />
-<path
- id="path1960"
- style="fill:url(#linearGradient1968);stroke:#1f1a17;stroke-width:0.89175665"
- d="M -44.924599,134.69841 C 58.455735,102.7032 151.07536,81.388433 249.28377,64.701882 C 249.28377,64.701882 253.76981,74.875044 255.36401,86.451829 C 158.28509,113.55715 64.938296,136.59581 -38.176804,157.96077 C -36.517373,150.40912 -39.26704,141.50914 -44.924344,134.69841 L -44.924599,134.69841 z " /></svg>
View
7 activity/activity.info
@@ -1,7 +0,0 @@
-[Activity]
-name = OnePageWiki
-service_name = com.socialtext.OnePageWiki
-class = OnePageWikiActivity.OnePageWikiActivity
-icon = activity-onepagewiki
-activity_version = 1
-show_launcher = yes
View
45 test-web-view.py
@@ -1,45 +0,0 @@
-import os
-import gtk
-import time
-import hulahop
-hulahop.startup(os.path.expanduser('~/.test-hulahop'))
-from XOCom import XOCom
-
-# The XOCom object helps us communicate with the browser
-uri = "file:///home/olpc/src/testapp/web/index.html"
-xocom = XOCom(uri)
-
-# This is just a simple way to trigger events from python for testing
-# Handler for keypresses in the GTK Application
-# r - call the javascript 'read' hook with a dummy string
-# w - call the javascript 'write' hook and print out the result
-def keypress(window, event):
- key = event.string
- if key == 'w':
- result = xocom.send_to_browser('write')
- if result:
- print "Result from browser - '%s'"%result
- else:
- print "No data received in the browser's response"
- if key == 'r':
- message = "I am a monkey - %s"%time.time()
- print "Sending '%s'"%message
- result = xocom.send_to_browser('read', message)
- if key == 'q':
- quit(None)
-
-
-# Shut down our app
-def quit(window):
-# hulahop.shutdown()
- gtk.main_quit()
-
-# Create our GTK window containing the embedded browser, and hook up some handlers
-window = gtk.Window()
-window.set_default_size(600, 400)
-window.connect("destroy", quit)
-window.connect("key_press_event", keypress)
-
-window.add( xocom.create_webview() )
-window.show()
-gtk.main()
Please sign in to comment.
Something went wrong with that request. Please try again.