summaryrefslogtreecommitdiffstats
path: root/streichelzoo/streichelzoo.py
diff options
context:
space:
mode:
authormomo <momo+github@mo2-systems.com>2011-10-16 17:18:31 +0200
committermomo <momo+github@mo2-systems.com>2011-10-16 17:18:31 +0200
commit7a620847ed43efb2dcecc7e01c36296cabc086ee (patch)
treec7d1eebe2b2a08b39501375388545812ae922abb /streichelzoo/streichelzoo.py
parentb3cf3d2df22b20b3527622b9e06a13ac8163e8c5 (diff)
//streichelzoo: fixed symlink misbehaviors
Diffstat (limited to 'streichelzoo/streichelzoo.py')
-rw-r--r--[l---------]streichelzoo/streichelzoo.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/streichelzoo/streichelzoo.py b/streichelzoo/streichelzoo.py
index d011e2c9..25b83964 120000..100644
--- a/streichelzoo/streichelzoo.py
+++ b/streichelzoo/streichelzoo.py
@@ -1 +1,31 @@
-/home/momo/dev/comshack/comshack.py \ No newline at end of file
+#! /bin/python
+from libavg import *
+
+#This function is a slightly modified version of cmiles code from dev.c-base.org/c_leuse/c_leuse.git
+#It takes a bunch of word nodes an slides them from left to right just as the HTML <marquee> function
+line = 16
+def welcomeScroll():
+ global line
+ line += 1
+ textNode = player.getElementByID("welcometext")
+ if line >= textNode.getNumChildren():
+ line = 0
+ node = textNode.getChild(line)
+ LinearAnim(node, "x", 11500, 1200, -1400, -1000, None, welcomeScroll).start()
+#
+def start_lightcontrol(event):
+ mainwindow = player.getElementByID("mainwindow")
+ lightcontrolwindow = player.getElementByID("lightcontrol")
+ mainwindow.active =False
+ lightcontrolwindow.active =True
+
+
+player = avg.Player.get()
+player.loadFile("main.avg")
+
+player.setTimeout(10, welcomeScroll)
+player.getElementByID("light").setEventHandler(avg.CURSORDOWN, avg.MOUSE, start_lightcontrol)
+#player.getElementByID("roster").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown)
+#player.getElementByID("blank").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown)
+player.play()
+