1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import gettext
23 import os
24
25 import gtk
26 from zope.interface import implements
27
28 from flumotion.admin.assistant.interfaces import IProducerPlugin
29 from flumotion.admin.assistant.models import VideoProducer
30 from flumotion.admin.gtk.basesteps import VideoProducerStep
31
32 __version__ = "$Rev: 7267 $"
33 _ = gettext.gettext
34
35
43
44
46 name = 'Test Video Producer'
47 title = _('Test Video Producer')
48 icon = 'testsource.png'
49 gladeFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
50 'wizard.glade')
51 componentType = 'videotestsrc'
52 docSection = 'help-configuration-assistant-producer-video-test'
53 docAnchor = ''
54 docVersion = 'local'
55
56
57
59 self.pattern.data_type = int
60 self.framerate.data_type = float
61
62 self.pattern.prefill([
63 (_('SMPTE Color bars'), 0),
64 (_('Random (television snow)'), 1),
65 (_('Totally black'), 2)])
66
67 self.add_proxy(self.model.properties,
68 ['pattern', 'width', 'height',
69 'framerate'])
70
71 sizegroup = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL)
72 sizegroup.add_widget(self.width)
73 sizegroup.add_widget(self.height)
74 sizegroup.add_widget(self.framerate)
75
79
80
90