~glitter-team/glitter/trunk

« back to all changes in this revision

Viewing changes to glitter/tests/test_scroll_area.py

  • Committer: Jan Jokela
  • Date: 2009-06-06 16:55:58 UTC
  • mfrom: (29.1.4 scroll_area)
  • Revision ID: jan@jan-laptop-20090606165558-1rpvn6tiywgvggup
(Merge) From scroll area widget

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import gtk
20
20
 
21
21
from scroll_area import ScrollArea
22
 
from label import Label
 
22
from image import Image
23
23
 
24
24
class TestScrollArea(object):
25
25
    """ Tests for the frame widget, depends on Image widget """
34
34
        self.stage.connect('notify::width', self.do_resize)
35
35
        self.stage.connect('notify::height', self.do_resize)
36
36
        
37
 
        self.scroll_area = ScrollArea(2.0)
 
37
        self.scroll_area = ScrollArea(2.0, 2.0)
38
38
        self.stage.add(self.scroll_area)
39
39
        self.scroll_area.natural_x = 0.1
40
40
        self.scroll_area.natural_y = 0.1
42
42
        self.scroll_area.natural_height = 0.8
43
43
        self.scroll_area._update_layout()
44
44
        
45
 
        self.label = Label("Scroll Area")
46
 
        self.scroll_area.pack(self.label)
 
45
        self.image = Image("test2.svg")
 
46
        self.scroll_area.pack(self.image)
47
47
        #self.label._update_layout()
48
48
 
49
49
        self.window.show_all()