This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from webiopi.devices.analog import MCP3208, MCP4922 | |
ADC0 = MCP3208(chip = 0) | |
DAC1 = MCP4922(chip = 1) | |
print "Setting output to 1.3 on channel 0 of DAC1" | |
DAC1.analogWriteVolt(0, 1.3) # set volatage of output channel VoutA to 1.3V | |
print("Analog Read DAC1 Voltage of channel 0", DAC1.analogReadVolt(0)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SwingWorker.StateValue.DONE != e.getNewValue() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gedit, frame, object:state-changed:active, 1 | |
gedit, label, object:property-change:accessible-name, 0 | |
gedit, menu, object:property-change:accessible-name, 0 | |
gedit, menu, object:state-changed:focusable, 1 | |
gedit, menu, object:state-changed:sensitive, 1 | |
, image, object:state-changed:showing, 0 | |
, panel, object:state-changed:showing, 0 | |
, panel, object:property-change:accessible-parent, 0 | |
, image, object:property-change:accessible-parent, 0 | |
, panel, object:property-change:accessible-parent, 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (oldSourceContext != null) { | |
AccessibleRole role = oldSourceContext.getAccessibleRole(); | |
- if (role == AccessibleRole.MENU || role == AccessibleRole.MENU_ITEM) { | |
+ if (role == AccessibleRole.ROOT_PANE) { | |
String jrootpane = "javax.swing.JRootPane$AccessibleJRootPane"; | |
String name = ctx.getClass().getName(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const gchar* | |
jaw_toplevel_get_description (AtkObject *obj) | |
{ | |
+ gint i; | |
+ for(i = 0; i < atk_object_get_n_accessible_children(obj); i++) | |
+ { | |
+ AtkObject* child = atk_object_ref_accessible_child(obj, i); | |
+ const gchar* description = atk_object_get_description(child); | |
+ if (description && strlen(description) > 0) | |
+ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AC_ARG_ENABLE([debug], | |
[ --jaw-debug Turn on debugging], | |
[case "${enableval}" in | |
yes) debug=true ;; | |
no) debug=false ;; | |
*) AC_MSG_ERROR([bad value ${enableval} for --jaw-debug]) ;; | |
esac],[debug=false]) | |
AM_CONDITIONAL([JAW_DEBUG], [test x$debug = xtrue]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.java2s.com/Code/JavaAPI/javax.accessibility/AccessibleContextgetAccessibleDescription.htm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# print_focused_selected.py | |
# | |
# Copyright (C) 2015 Magdalen Berns <[email protected]> | |
# | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public | |
# License as published by the Free Software Foundation; either | |
# version 2.1 of the License, or (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* windowClosing: | |
* Invoked when a window is in the process of being closed. | |
* @param e A WindowEvent object | |
*/ | |
public void windowClosing(WindowEvent e) { | |
Object o = e.getSource(); | |
if (o instanceof javax.accessibility.Accessible) { | |
boolean isToplevel = isToplevel(o); | |
AccessibleContext ac = ((javax.accessibility.Accessible)o).getAccessibleContext(); |