1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import gtk
24 import gobject
25 from scrolled_window import ScrolledWindow
26
28 '''
29 View widget for Deepin Talk.
30 '''
31
32 - def __init__(self,
33 right_space=2,
34 top_bottom_space=3):
35 '''
36 Initialize TalkView class.
37 '''
38
39 ScrolledWindow.__init__(self, right_space, top_bottom_space)
40 self.draw_area = gtk.DrawingArea()
41 self.draw_align = gtk.Alignment()
42 self.draw_align.set(0.5, 0.5, 1, 1)
43
44 self.draw_align.add(self.draw_area)
45 self.add_child(self.draw_align)
46
47 gobject.type_register(TalkView)
48
50 '''
51 Talk item for L{ I{TalkView} <TalkView>}.
52 '''
53
55 '''
56 Initialize TalkItem class.
57 '''
58 gobject.GObject.__init__(self)
59
61 '''
62 Get size of talk item.
63 '''
64 print "TalkItem.get_size: Your should implement this interface in your own class!"
65
67 '''
68 Render talk item.
69 '''
70 print "TalkItem.render: Your should implement this interface in your own class!"
71
72
73 gobject.type_register(TalkItem)
74