* Final cleanup of the docs prior to release
This commit is contained in:
parent
e4e402ba28
commit
f47d598ba9
10
MANIFEST.in
10
MANIFEST.in
@ -22,8 +22,8 @@ exclude examples\examples_watsup\*.*
|
|||||||
|
|
||||||
# include all the website folder and make sure that
|
# include all the website folder and make sure that
|
||||||
# the sub version files are not included
|
# the sub version files are not included
|
||||||
include documentation\*.*
|
include docs\*.*
|
||||||
exclude documentation\.svn\*
|
exclude docs\.svn\*
|
||||||
exclude documentation\pywinauto\.svn\*
|
exclude docs\pywinauto\.svn\*
|
||||||
exclude documentation\pywinauto\controls\.svn\*
|
exclude docs\pywinauto\controls\.svn\*
|
||||||
exclude documentation\pywinauto\tests\.svn\*
|
exclude docs\pywinauto\tests\.svn\*
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
Change Log
|
Change Log
|
||||||
==========
|
==========
|
||||||
|
|
||||||
0.3.8 Various minor changes and fixes
|
0.3.8 Collecting improvements from last 2 years
|
||||||
------------------------------------------------------------------
|
------------------------------------------------------------------
|
||||||
10-December-2008
|
10-March-2009
|
||||||
|
|
||||||
|
* Converted documenation from Pudge generated to Sphinx Generated
|
||||||
|
|
||||||
* Ensured that return value from ComboBoxWrapper.SelectedIndices
|
* Ensured that return value from ComboBoxWrapper.SelectedIndices
|
||||||
is always a tuple (there was a bug where it would sometimes be
|
is always a tuple (there was a bug where it would sometimes be
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
You can adapt this file completely to your liking, but it should at least
|
You can adapt this file completely to your liking, but it should at least
|
||||||
contain the root `toctree` directive.
|
contain the root `toctree` directive.
|
||||||
|
|
||||||
|
.. _contents-root:
|
||||||
|
|
||||||
Contents
|
Contents
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
Credits
|
||||||
|
-------
|
||||||
Stefaan Himpe - Lots of speed and stability improvements early on
|
Stefaan Himpe - Lots of speed and stability improvements early on
|
||||||
Jeff Winkler - Early encouragement, creation of screencasts
|
Jeff Winkler - Early encouragement, creation of screencasts
|
||||||
Dalius Dobravolskas - Help on the forums and prompted major improvements on the wait* functionality
|
Dalius Dobravolskas - Help on the forums and prompted major improvements on the wait* functionality
|
||||||
|
@ -5,6 +5,8 @@ What is pywinauto
|
|||||||
Released under the LGPL licence
|
Released under the LGPL licence
|
||||||
|
|
||||||
|
|
||||||
|
:ref:`Full table of contents. <contents-root>`
|
||||||
|
|
||||||
What is it?
|
What is it?
|
||||||
-----------
|
-----------
|
||||||
pywinauto is a set of python modules to automate the Microsoft Windows GUI.
|
pywinauto is a set of python modules to automate the Microsoft Windows GUI.
|
||||||
@ -40,7 +42,7 @@ There are examples in there to work with Notepad and MSPaint.
|
|||||||
|
|
||||||
How does it work
|
How does it work
|
||||||
----------------
|
----------------
|
||||||
A lot is done through attribute access (__getattr__) for each class. For example
|
A lot is done through attribute access (``__getattr__``) for each class. For example
|
||||||
when you get the attribute of an Application or Dialog object it looks for a
|
when you get the attribute of an Application or Dialog object it looks for a
|
||||||
dialog or control (respectively).
|
dialog or control (respectively).
|
||||||
|
|
||||||
@ -100,39 +102,41 @@ Why write yet another automation tool if there are so many out there?
|
|||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
There are loads of reasons :-)
|
There are loads of reasons :-)
|
||||||
|
|
||||||
*Takes a different approach*
|
**Takes a different approach:**
|
||||||
Most other tools are not object oriented you end up writing stuff like::
|
Most other tools are not object oriented you end up writing stuff like::
|
||||||
|
|
||||||
window = findwindow(title = "Untitled - Notepad", class = "Notepad")
|
window = findwindow(title = "Untitled - Notepad", class = "Notepad")
|
||||||
SendKeys(window, "%OF") # Format -> Font
|
SendKeys(window, "%OF") # Format -> Font
|
||||||
fontdialog = findwindow("title = "Font")
|
fontdialog = findwindow("title = "Font")
|
||||||
buttonClick(fontdialog, "OK")
|
buttonClick(fontdialog, "OK")
|
||||||
|
|
||||||
I was hoping to create something more userfriendly (and pythonic). For example
|
I was hoping to create something more userfriendly (and pythonic). For example
|
||||||
the translation of above would be::
|
the translation of above would be::
|
||||||
|
|
||||||
win = app.UntitledNotepad
|
win = app.UntitledNotepad
|
||||||
win.MenuSelect("Format->Font")
|
win.MenuSelect("Format->Font")
|
||||||
app.Font.OK.Click()
|
app.Font.OK.Click()
|
||||||
|
|
||||||
*Python makes it easy*
|
|
||||||
Python is a great programming language, but I didn't find
|
|
||||||
any automation tools that were Pythonic (I only found one
|
|
||||||
that was implemented in python) and I didn't care for it
|
|
||||||
too much.
|
|
||||||
|
|
||||||
*Localization as a main requirement*
|
**Python makes it easy:**
|
||||||
I work in the localization industry and GUI
|
Python is a great programming language, but I didn't find
|
||||||
automation is used extensively as often all
|
any automation tools that were Pythonic (I only found one
|
||||||
you need to do is ensure that your UI behaves
|
that was implemented in python) and I didn't care for it
|
||||||
and is correct with respect to the Source
|
too much.
|
||||||
UI. This is actually an easier job then for
|
|
||||||
testing the original source UI.
|
|
||||||
|
**Localization as a main requirement:**
|
||||||
But most automation tools are based off of coordinates or text of the
|
I work in the localization industry and GUI
|
||||||
controls and these can change in the localized software. So my goal (
|
automation is used extensively as often all
|
||||||
though not yet implemented) is to allow scripts to run unchanged
|
you need to do is ensure that your UI behaves
|
||||||
between original source language (often English) and the translated
|
and is correct with respect to the Source
|
||||||
software (Japanese, German, etc).
|
UI. This is actually an easier job then for
|
||||||
|
testing the original source UI.
|
||||||
|
|
||||||
|
But most automation tools are based off of coordinates or text of the
|
||||||
|
controls and these can change in the localized software. So my goal (
|
||||||
|
though not yet implemented) is to allow scripts to run unchanged
|
||||||
|
between original source language (often English) and the translated
|
||||||
|
software (Japanese, German, etc).
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
REM docs\build_autodoc_files.py
|
REM docs\build_autodoc_files.py
|
||||||
sphinx-build -b html docs docs\.build
|
sphinx-build -b html doc_build docs
|
||||||
|
|
||||||
REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template
|
REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template
|
||||||
|
|
||||||
|
19
setup.py
19
setup.py
@ -46,16 +46,17 @@ def SetupPath(path = ""):
|
|||||||
# add it to the system path
|
# add it to the system path
|
||||||
sys.path.append(SetupPath())
|
sys.path.append(SetupPath())
|
||||||
|
|
||||||
# now it should be save to import pywinauto
|
# now it should be safe to import pywinauto
|
||||||
import pywinauto
|
import pywinauto
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# make sure the documentation is in the correct place for building
|
# make sure the documentation is in the correct place for building
|
||||||
if "sdist" in sys.argv:
|
# todo: see how to build the website
|
||||||
import shutil
|
#if "sdist" in sys.argv:
|
||||||
if not os.path.exists(SetupPath("documentation")):
|
# import shutil
|
||||||
shutil.move(SetupPath("website"), SetupPath("documentation"))
|
# if not os.path.exists(SetupPath("docs")):
|
||||||
|
# shutil.move(SetupPath("website"), SetupPath("docs"))
|
||||||
|
|
||||||
|
|
||||||
setup(name='pywinauto',
|
setup(name='pywinauto',
|
||||||
@ -91,10 +92,10 @@ controls also.
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# todo: see how to build the website later
|
||||||
if "sdist" in sys.argv:
|
#if "sdist" in sys.argv:
|
||||||
if not os.path.exists(SetupPath("website")):
|
# if not os.path.exists(SetupPath("website")):
|
||||||
shutil.move(SetupPath("documentation"), SetupPath("website"))
|
# shutil.move(SetupPath("documentation"), SetupPath("website"))
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user