Skip to content

Commit cfcf95f

Browse files
committed
Added culebra icon
- Added package data - Added wake before refresh (in case the device goes to sleep)
1 parent 8bfaf43 commit cfcf95f

File tree

12 files changed

+21
-9
lines changed

12 files changed

+21
-9
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='9.6.1',
7-
description='''AndroidViewClient is a 100% pure python tool that
8-
simplifies test script creation providing higher level operations and the ability of
9-
obtaining the tree of Views present at any given moment on the device or emulator screen.
6+
version='10.0.0',
7+
description='''AndroidViewClient is a 100% pure python library and tools
8+
that simplifies test script creation providing higher level
9+
operations and the ability of obtaining the tree of Views present at
10+
any given moment on the device or emulator screen.
1011
''',
1112
license='Apache',
1213
keywords='android uiautomator viewclient monkeyrunner test automation',
@@ -15,6 +16,8 @@
1516
url='https://github.com/dtmilano/AndroidViewClient/',
1617
packages=find_packages('src'),
1718
package_dir={'':'src'},
19+
package_data={'':['*.png']},
20+
include_package_data=True,
1821
scripts=['tools/culebra', 'tools/dump'],
1922
classifiers=['Development Status :: 5 - Production/Stable',
2023
'Intended Audience :: Developers',

src/androidviewclient.egg-info/SOURCES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ src/com/dtmilano/android/window.py
1515
src/com/dtmilano/android/adb/__init__.py
1616
src/com/dtmilano/android/adb/adbclient.py
1717
src/com/dtmilano/android/adb/androidkeymap.py
18+
src/share/__init__.py
19+
src/share/pixmaps/__init__.py
1820
tools/culebra
1921
tools/dump
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
setuptools
1+
setuptools
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
share
12
com

src/com/dtmilano/android/adb/adbclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '9.6.1'
20+
__version__ = '10.0.0'
2121

2222
import sys
2323
import warnings

src/com/dtmilano/android/controlpanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@author: Ahmed Kasem
2020
'''
2121

22-
__version__ = '9.6.1'
22+
__version__ = '10.0.0'
2323

2424
import sys, os
2525
import Tkinter, tkFileDialog, ttk

src/com/dtmilano/android/culebron.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import platform
3131
from Tkconstants import DISABLED
3232
from __builtin__ import False
33+
from pkg_resources import Requirement, resource_filename
3334

3435
try:
3536
from PIL import Image, ImageTk
@@ -157,6 +158,10 @@ def __init__(self, vc, printOperation, scale=1):
157158
self.serialno = vc.serialno
158159
self.scale = scale
159160
self.window = Tkinter.Tk()
161+
icon = resource_filename(Requirement.parse("androidviewclient"),
162+
"share/pixmaps/culebra.png")
163+
self.window.tk.call('wm', 'iconphoto', self.window._w,
164+
ImageTk.PhotoImage(file=icon))
160165
self.mainMenu = MainMenu(self)
161166
self.window.config(menu=self.mainMenu)
162167
self.statusBar = StatusBar(self.window)
@@ -630,6 +635,7 @@ def onKeyPressed(self, event):
630635

631636
def refresh(self):
632637
self.showVignette()
638+
self.device.wake()
633639
display = copy.copy(self.device.display)
634640
self.device.initDisplayProperties()
635641
changed = False

src/share/__init__.py

Whitespace-only changes.

src/share/pixmaps/__init__.py

Whitespace-only changes.

src/share/pixmaps/culebra.png

40.8 KB
Loading

0 commit comments

Comments
 (0)