Author: rshortt
Date: Wed Jan 17 14:19:54 2007
New Revision: 2418

Added:
   trunk/canvas/test/container_test.py

Log:
Add container test.


Added: trunk/canvas/test/container_test.py
==============================================================================
--- (empty file)
+++ trunk/canvas/test/container_test.py Wed Jan 17 14:19:54 2007
@@ -0,0 +1,22 @@
+import kaa, kaa.canvas
+from test_common import *
+
+if output == "DirectFB":
+    canvas = kaa.canvas.DirectFBCanvas(size)
+elif output == "FB":
+    canvas = kaa.canvas.FBCanvas(size)
+else: # X11
+    canvas = kaa.canvas.X11Canvas(size)
+
+canvas.add_child(kaa.canvas.Image("data/background.jpg"))
+
+container = canvas.add_child(kaa.canvas.Container(), hcenter = "50%", vcenter 
= "50%")
+
+frame = kaa.canvas.Image("data/frame.png")
+frame.set_border(30, 30, 30, 30)
+container.add_child(frame, width = "75%", height = "50%")
+
+text = kaa.canvas.Text("Text inside a container.")
+container.add_child(text, hcenter = "50%", vcenter = "50%")
+
+kaa.main()

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to