Home | Trees | Indices | Help |
|
---|
|
1 # Copyright 2006 James Tauber and contributors 2 # Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 import pyjd 16 from pyjamas import DOM 17 from __pyjamas__ import JS 18 19 if not pyjd.is_desktop: 20 JS(""" 21 var focusHandler = null; 22 """) 23 26 29 3234 elem.blur()35 4042 elem.focus()43 46 49 52 5355 58 61 67 709272 try: 73 return not DOM.getBooleanAttribute(self.getElement(), "disabled") 74 except TypeError: 75 return True 76 except AttributeError: 77 return True78 8183 try: 84 return not DOM.getBooleanAttribute(self.getElement(), "readOnly") 85 except TypeError: 86 return True 87 except AttributeError: 88 return True89
Home | Trees | Indices | Help |
|
---|
http://epydoc.sourceforge.net |