~glitter-team/glitter/trunk

« back to all changes in this revision

Viewing changes to glitter/tests/video_player.py

bliss

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        self.toolbar = Toolbar()
59
59
        self.frame.add(self.toolbar)
60
60
        self.toolbar.natural_width = 0.8
61
 
        self.toolbar.natural_height = 0.2
 
61
        #self.toolbar.natural_height = 0.2
62
62
        self.toolbar.natural_x = 0.1
63
63
        self.toolbar.natural_y = 0.7
64
64
        self.toolbar._update_layout()
65
65
        
66
66
        self.vbox = VBox()
67
 
        self.toolbar.add(self.vbox)
 
67
        self.toolbar.pack(self.vbox)
 
68
        self.vbox.spacing = 0.1
68
69
        
69
70
        self.slider = Slider()
70
71
        self.vbox.pack(self.slider)
75
76
        self.hbox.h_offset = 0.3
76
77
        self.vbox.pack(self.hbox)
77
78
        
78
 
        self.image1 = Image('test.svg', source_scalable=False)
79
 
        self.image1.size_ratio = 1.0
80
 
        self.hbox.pack(self.image1)
81
 
        
82
 
        self.image2 = Image('test.svg', source_scalable=False)
83
 
        self.image2.size_ratio = 1.0
84
 
        self.hbox.pack(self.image2)
85
 
        
86
 
        """self.image3 = Image('test.svg', source_scalable=False)
87
 
        self.image3.size_ratio = 1.0
88
 
        self.hbox.pack(self.image3)"""
89
 
        
90
 
        self.fbutton = FloatingButton(icon="test.svg", label="Play")
91
 
        self.hbox.pack(self.fbutton)
 
79
        self.fbutton1 = FloatingButton(icon="test.svg", label="Play")
 
80
        self.hbox.pack(self.fbutton1)
 
81
 
 
82
        self.fbutton2 = FloatingButton(icon="test.svg", label="Pause")
 
83
        self.hbox.pack(self.fbutton2)
 
84
        
 
85
        self.fbutton3 = FloatingButton(icon="test.svg", label="Stop")
 
86
        self.hbox.pack(self.fbutton3)
92
87
        
93
88
        self.window.show_all()
94
89
        gtk.main()
98
93
 
99
94
    def do_resize(self, stage, event):
100
95
        self.frame._update_layout()
 
96
        #print self.vbox.get_heightu()
101
97
        
102
98
if __name__ == '__main__':
103
99
    if len(sys.argv) != 3: