Skip to content

Commit

Permalink
Update readme and history, remove commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasily-v-ryabov committed Jul 9, 2015
1 parent 75e4777 commit c77f9a7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 88 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ but it also supports more complex actions.
* Just unpack and run `python setup.py install`

### Planning pywinauto 0.5.1 (2015 July, 14)
- [x] Resolved pip issues
- [x] Resolve pip issues
- [x] Warnings about mismatched Python/application bitness
- [x] Added "TCheckBox" class name to ButtonWrapper detection list
- [x] Add "TCheckBox" class name to ButtonWrapper detection list
- [x] Fix `DebugMessage` method

### pywinauto 0.5.0 release notes (2015 June, 30)
- [x] 64-bit Python and 64-bit apps support (but 32-bit Python is recommended for 32-bit apps)
Expand Down
13 changes: 13 additions & 0 deletions doc_src/HISTORY.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
Change Log
==========

0.5.1 Several fixes, more tests.
------------------------------------------------------------------
14-July-2015

* Resolve pip issues

* Warn user about mismatched Python/application bitness (64-bit Python
should be used for 64-bit application and 32-bit Python is for 32-bit app)

* Add "TCheckBox" class name to ButtonWrapper detection list

* Fix ``DebugMessage`` method

0.5.0 64-bit Py2/Py3 compatibility.
------------------------------------------------------------------
30-June-2015
Expand Down
86 changes: 1 addition & 85 deletions pywinauto/handleprops.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def controlid(handle):

#=========================================================================
def userdata(handle):
"Return the value of any userdata associated with the window"
"Return the value of any user data associated with the window"
return win32functions.GetWindowLong (handle, win32defines.GWL_USERDATA)

#=========================================================================
Expand Down Expand Up @@ -309,7 +309,6 @@ def has_exstyle(handle, tocheck):
hwnd_exstyle = exstyle(handle)
return tocheck & hwnd_exstyle == tocheck


#=========================================================================
def is_toplevel_window(handle):
"Return whether the window is a top level window or not"
Expand All @@ -325,88 +324,6 @@ def is_toplevel_window(handle):
else:
return False


#=========================================================================
#def get_button_friendlyclassname(handle):
# "Return the friendly class name of a button control"
#
# # get the least significant bit
# style_lsb = style(handle) & 0xF
#
# # default to "Button"
# f_classname = "Button"
#
# if style_lsb == win32defines.BS_3STATE or \
# style_lsb == win32defines.BS_AUTO3STATE or \
# style_lsb == win32defines.BS_AUTOCHECKBOX or \
# style_lsb == win32defines.BS_CHECKBOX:
# f_classname = "CheckBox"
#
# elif style_lsb == win32defines.BS_RADIOBUTTON or \
# style_lsb == win32defines.BS_AUTORADIOBUTTON:
# f_classname = "RadioButton"
#
# elif style_lsb == win32defines.BS_GROUPBOX:
# f_classname = "GroupBox"
#
# if style(handle) & win32defines.BS_PUSHLIKE:
# f_classname = "Button"
#
# return f_classname


#def friendlyclassname(handle):
# """Return the friendly class name of the window
#
# The friendly class name might be subjective, but it
# tries to be what a normal user would call a window
# rather then the windows class name for the window.
# """
#
# import warnings
# warnings.warn("handleprops.friendlyclassname() is deprecated. Please use"
# "FriendlyClassMethod() of HwndWrapper",
# DeprecationWarning)
#
# # if it's a dialog then return that
# if is_toplevel_window(handle) and classname(handle) == "#32770":
# return "Dialog"
#
# # otherwise ask the wrapper class for the friendly class name
# class_name = classname(handle)
#
# from controls import wraphandle
# info = wraphandle._find_wrapper(class_name)
#
# if info:
# return info.friendlyclassname
#
# else:
# return class_name



#
#
# # Check if the class name is in the known classes
# for cls_name, f_cls_name in _class_names.items():
#
# # OK we found it
# if re.match(cls_name, classname(handle)):
# # If it is a string then just return it
# if isinstance(f_cls_name, six.string_types):
# return f_cls_name
# # otherwise it is a function so call it
# else:
# return f_cls_name(handle)
#
# # unknown class - just return it's classname
# return classname(handle)





#=========================================================================
def dumpwindow(handle):
"Dump a window to a set of properties"
Expand Down Expand Up @@ -434,4 +351,3 @@ def dumpwindow(handle):
props[func.__name__] = func(handle)

return props

1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
print('No ez_setup.py. Using plain setuptools...')
from setuptools import setup
except ImportError:
# TODO: no distutils, no hardcore! :)
print('Using distutils.core for setup...')
from distutils.core import setup

Expand Down

0 comments on commit c77f9a7

Please sign in to comment.