| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/orca/ |
Upload File : |
Ńň
z#ÝJc @ s d Z d Z d Z d Z d Z d Z d d k Z d Z d Z d
Z d Z
d d
d Z d d
d Z d Z
d Z d Z d e i f d YZ d S( ss Provides a graphical braille display at the top of the screen.
This is mainly for debugging and for demonstrations.s $Id$s
$Revision$s $Date$s- Copyright (c) 2005-2008 Sun Microsystems Inc.t LGPLi˙˙˙˙Ns @s s Ŕs size='xx-large's background='black's weight='ultrabold's style='italic's background='white's underline='low's underline='error's underline='double't BrlMonc B s5 e Z d Z d d d d Z d Z d d Z RS( sś Displays a GUI braille monitor that mirrors what is being
shown on the braille display. This currently needs a lot of
work, but it is a start. TODO's include doing a better job of
docking it at the top of the display (e.g., make all other
windows move out from underneath it), doing better highlighting of
the cursor cell, allowing the font to be set, and perhaps allowing
clicks to simulate cursor routing keys.i i i2 c C s# t i i | t i | i d | i | | | t i t } | i | g | _ g | _
d } x | | j o t i } | i t i
t i d } | i t | i | | i | | i i | | i
i | | d 7} qn W| i d t | i d | i d S( sĘ Create a new BrlMon.
Arguments:
- numCells: how many braille cells to make
- cellWidth: width of each cell in pixels
- cellHeight: height of each cell in pixels
s Braille Monitori t i s accept-focuss check-resizeN( t gtkt Windowt __init__t WINDOW_TOPLEVELt set_titlet set_default_sizet HBoxt Truet addt
cellFramest
cellLabelst Framet set_shadow_typet
SHADOW_OUTt Labelt set_use_markupt appendt set_propertyt Falset
connect_aftert onResize( t selft numCellst cellWidtht
cellHeightt hboxt it framet label( ( s/ /usr/lib/python2.6/site-packages/orca/brlmon.pyR A s*
c C sŰ t i i } | i i \ } } | | j o | | d } n d } | i i t i i | i i t i i d t t i i d t d t i i
d d | d d d d d d | d d d g | i | d d S( s Tell the window to be a dock and set its struts, which I
thinks means to attempt to glue it somewhere on the display.
i i t _NET_WM_STRUT_PARTIALt CARDINALi i N( R t gdkt screen_widtht windowt get_sizet
set_type_hintt WINDOW_TYPE_HINT_DOCKt property_changet atom_internR t PROP_MODE_REPLACEt move( R t objR# t window_widtht
window_heightt x( ( s/ /usr/lib/python2.6/site-packages/orca/brlmon.pyR b s.
c C sţ y | i d } Wn
d } n Xxt d t | D]i} | | d j o
d } nA | | d j o
d } n&