[pitivi: 6/6] remove unneeded files
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 6/6] remove unneeded files
- Date: Sun, 8 Mar 2009 08:02:37 -0400 (EDT)
commit db4d724f5194e0afc830fe081507fe73465ec8e2
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Mar 6 23:06:57 2009 -0800
remove unneeded files
---
tests/runtests.py | 2 +-
tests/testHList.py | 82 --------------------------------------------------
tests/testmagnets.py | 51 -------------------------------
3 files changed, 1 insertions(+), 134 deletions(-)
diff --git a/tests/runtests.py b/tests/runtests.py
index ef07c6d..638a0e9 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -3,7 +3,7 @@ import os
import sys
import unittest
-SKIP_FILES = ['common', 'runtests', 'testcomplex', 'testHList', 'testmagets']
+SKIP_FILES = ['common', 'runtests']
def gettestnames(which):
if not which:
diff --git a/tests/testHList.py b/tests/testHList.py
deleted file mode 100644
index ed5b819..0000000
--- a/tests/testHList.py
+++ /dev/null
@@ -1,82 +0,0 @@
-import gobject
-gobject.threads_init()
-import pygtk
-pygtk.require("2.0")
-import gtk
-import goocanvas
-from itertools import cycle
-from util import *
-
-LABELS = "one two three four five six seven".split()
-
-box_a = (
- goocanvas.Rect,
- {
- "width" : 50,
- "height" : 30,
- "stroke_color" : "black",
- "fill_color_rgba" : 0x556633FF
- },
- {}
-)
-box_b = (
- goocanvas.Rect,
- {
- "width" : 75,
- "height" : 30,
- "stroke_color" : "black",
- "fill_color_rgba" : 0x663333FF,
- },
- {}
-)
-
-box = cycle((box_a, box_b))
-
-label = (
- Text,
- {
- "font" : "Sans 9",
- "text" : "will be replaced",
- "fill_color_rgba" : 0x66AA66FF,
- "anchor" : gtk.ANCHOR_CENTER
- },
- {}
-)
-
-def null_true(*args):
- return True
-
-def null_false(*args):
- return False
-
-def make_box(text):
- b = make_item(box.next())
- t = make_item(label)
- t.props.text = text
- set_pos(t, center(b))
- return group(b, t)
-
-def make_widget(text):
- b = gtk.Label(text)
- d = gtk.EventBox()
- d.add(b)
- e = goocanvas.Rect(width=75, height=50, visibility=False)
- return group(goocanvas.Widget(widget=d, width=75,
- height=50), e)
-
-c = goocanvas.Canvas()
-t = HList(canvas=c)
-c.get_root_item().add_child(t)
-for word in LABELS:
- t.add(make_box(word))
-t.reorderable = True
-s = gtk.ScrolledWindow()
-s.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_NEVER)
-s.add(c)
-w = gtk.Window()
-w.add(s)
-w.show_all()
-w.connect("destroy", gtk.main_quit)
-gtk.main()
-
-
diff --git a/tests/testmagnets.py b/tests/testmagnets.py
deleted file mode 100644
index def4dc9..0000000
--- a/tests/testmagnets.py
+++ /dev/null
@@ -1,51 +0,0 @@
-import sys, os, gtk, goocanvas
-
-root = os.path.abspath(os.path.curdir)
-print root
-if not root in sys.path:
- sys.path.insert(0, root)
-
-from pitivi.ui.util import *
-from pitivi.utils import binary_search
-
-RECT = (
- goocanvas.Rect,
- {
- "width" : 50,
- "height" : 50,
- "fill-color" : "blue"
- },
- {}
-)
-
-LINE = (
- goocanvas.Rect,
- {
- "width" : 1,
- "height" : 50,
- "line-width" : 0.5
- },
- {}
-)
-magnets = [0, 100, 230, 500, 600]
-deadband = 7
-
-def transform(pos):
- x, y = pos
- global magnets, deadband, i
- return (magnetize(i, x, magnets, deadband), 0)
-
-c = goocanvas.Canvas()
-c.set_bounds(0, 0, 700, 100)
-i = make_item(RECT)
-c.get_root_item().add_child(i)
-make_dragable(c, i, transform=transform)
-for m in magnets:
- l = make_item(LINE)
- l.props.x = m
- c.get_root_item().add_child(l)
-w = gtk.Window()
-w.connect("destroy", gtk.main_quit)
-w.add(c)
-w.show_all()
-gtk.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]