~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to examples/kiva/wx_text.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2010-10-17 23:10:41 UTC
  • mto: (1.2.1 upstream) (8.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20101017231041-rziowhgl7zhxra2i
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from __future__ import with_statement
 
2
 
1
3
import wx
2
4
from enthought.kiva.backend_wx import Canvas, CanvasWindow
3
5
 
73
75
 
74
76
        gc.set_line_width(1)
75
77
        gc.translate_ctm(w/2.0,h/2.0)
76
 
        gc.save_state()
77
 
        gc.scale_ctm(2.0,2.0)
78
 
        glyph_a(gc)
79
 
        gc.restore_state()
 
78
        with gc:
 
79
            gc.scale_ctm(2.0,2.0)
 
80
            glyph_a(gc)
80
81
        gc.stroke_path()
81
82
        
82
83
        gc.translate_ctm(0,-20)