~doctormo/python-snippets/lp-merge-request-example

« back to all changes in this revision

Viewing changes to pygtk/drawingarea.py

  • Committer: Jono Bacon
  • Date: 2010-01-22 19:43:23 UTC
  • mfrom: (18.1.2 python-snippets)
  • Revision ID: jono@ubuntu.com-20100122194323-3gkor45n2g2z0ehl
Cairo example and drawing area fix, thanks Jurjen!

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        window.set_title("Drawing Area Example")
20
20
        window.connect("destroy", lambda w: gtk.main_quit())
21
21
        self.area = gtk.DrawingArea()
22
 
        self.area.set_size_request(400, 300)
 
22
        self.area.set_size_request(500, 400)
23
23
        self.pangolayout = self.area.create_pango_layout("")
24
24
        self.sw = gtk.ScrolledWindow()
25
25
        self.sw.add_with_viewport(self.area)
 
26
        self.sw.set_size_request(410, 330)
26
27
        self.table = gtk.Table(2,2)
27
28
        self.hruler = gtk.HRuler()
28
29
        self.vruler = gtk.VRuler()