
"""Controls package"""

from ..sysinfo import UIA_support
if UIA_support:
    from . import UIAWrapper # register "uia" back-end (at the end of UIAWrapper module)

from .HwndWrapper import GetDialogPropsFromHandle
from .HwndWrapper import InvalidWindowHandle

# import the control classes - this will register the classes they
# contain
from . import common_controls
from . import win32_controls
from . import uia_controls


from ..base_wrapper import InvalidElement


"""Controls package"""

from ..sysinfo import UIA_support
if UIA_support:
    from . import UIAWrapper # register "uia" back-end (at the end of UIAWrapper module)
    from . import uia_controls

from .HwndWrapper import GetDialogPropsFromHandle
from .HwndWrapper import InvalidWindowHandle

# import the control classes - this will register the classes they
# contain
from . import common_controls
from . import win32_controls


from ..base_wrapper import InvalidElement

Fix uia_controls registration only when UIA is supported
Fix uia_controls registration only when UIA is supported

  
  """Controls package"""
  
  from ..sysinfo import UIA_support
  if UIA_support:
      from . import UIAWrapper # register "uia" back-end (at the end of UIAWrapper module)
+     from . import uia_controls
  
  from .HwndWrapper import GetDialogPropsFromHandle
  from .HwndWrapper import InvalidWindowHandle
  
  # import the control classes - this will register the classes they
  # contain
  from . import common_controls
  from . import win32_controls
- from . import uia_controls
  
  
  from ..base_wrapper import InvalidElement
  
Fix uia_controls registration only when UIA is supported
## Code Before:

"""Controls package"""

from ..sysinfo import UIA_support
if UIA_support:
    from . import UIAWrapper # register "uia" back-end (at the end of UIAWrapper module)

from .HwndWrapper import GetDialogPropsFromHandle
from .HwndWrapper import InvalidWindowHandle

# import the control classes - this will register the classes they
# contain
from . import common_controls
from . import win32_controls
from . import uia_controls


from ..base_wrapper import InvalidElement

## Instruction:
Fix uia_controls registration only when UIA is supported
## Code After:

"""Controls package"""

from ..sysinfo import UIA_support
if UIA_support:
    from . import UIAWrapper # register "uia" back-end (at the end of UIAWrapper module)
    from . import uia_controls

from .HwndWrapper import GetDialogPropsFromHandle
from .HwndWrapper import InvalidWindowHandle

# import the control classes - this will register the classes they
# contain
from . import common_controls
from . import win32_controls


from ..base_wrapper import InvalidElement
