Changeset 122
- Timestamp:
- 01/17/08 12:32:59
- Files:
-
- inapp/trunk/ChangeLog (modified) (1 diff)
- inapp/trunk/README (modified) (1 diff)
- inapp/trunk/src/jambu/HighLight.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
inapp/trunk/ChangeLog
r103 r122 1 2008-01-16 r122 SteveLee <steve@fullmeasure.co.uk> 2 3 * improved highlight 4 5 2008-01-16 r121 SteveLee <steve@fullmeasure.co.uk> 6 7 * Installer uses relative paths allowing user selection 8 Thanks to Eitan Isaacson 9 * README updated 10 11 2008-01-16 r118 SteveLee <steve@fullmeasure.co.uk> 12 13 * enabled pyatspi queuing of events 14 1 15 2007-12-21 SteveLee <steve@fullmeasure.co.uk> 2 16 3 Big reorganisation for release 0.0.1 tarball and distutils 4 17 * Big reorganisation for release 0.0.1 tarball and distutils 5 18 6 19 2007-12-20 SteveLee <steve@fullmeasure.co.uk> 7 20 8 * Added CHANGES, LICENSE, AUTHORS9 * README:21 * Added CHANGES, LICENSE, AUTHORS 22 * README: 10 23 Keyboard control with CTRL + Spacebar (thanks to Eitan Isaacsan) 11 24 * ActionBrowser.py: added pyatspi kb events and queue them inapp/trunk/README
r121 r122 84 84 invoke an OSK like GOK or Dasher. 85 85 86 Ensure accerciser is not also running. In some circumstances this causes errors. 87 86 88 Actions and Gestures 87 89 -------------------- inapp/trunk/src/jambu/HighLight.py
r113 r122 22 22 import gobject 23 23 import cairo 24 from math import ceil, floor 24 25 25 26 _ = gettext.gettext 26 27 27 28 28 _svg =r""" 29 29 <svg width="100%" height="100%" version="1.1" 30 30 xmlns="http://www.w3.org/2000/svg"> 31 <rect width="$width" height="$height"31 <rect x="$x" y="$y" width="$width" height="$height" 32 32 style="fill:$fill;stroke-width:$stroke_width;stroke:$stroke; 33 33 fill-opacity:$fill_opacity;stroke-opacity:$stroke_opacity" 34 rx=" 5" ry="5"34 rx="6" ry="6" 35 35 /> 36 36 </svg> 37 37 """ 38 STROKE_WIDTH = 5.0 39 STROKE_OPACITY = 0.9 40 FILL_OPACITY = 0.1 38 41 39 42 class _HighLight(gtk.Window): … … 50 53 self.resize(w, h) 51 54 self.setTransparent() 52 self.svg = string.Template(_svg).substitute(width=self.w, height=self.h, 55 offset=STROKE_WIDTH/2.0 56 self.svg = string.Template(_svg).substitute(x=offset, y=offset, 57 width=self.w, height=self.h, 53 58 fill=self.hlcolor, 54 stroke_width= "7",59 stroke_width=STROKE_WIDTH, 55 60 stroke=self.hlcolor, 56 stroke_opacity="0.9", fill_opacity="0.1") 57 # print self.svg 61 stroke_opacity=STROKE_OPACITY, 62 fill_opacity=FILL_OPACITY) 63 print self.svg 58 64 self.set_accept_focus(False) 59 65 self.set_sensitive(False)
