some module
Project description
module
Some module for python
Installation
pip install module-thw
Example
Window
import subprocess
import module
import time
p1 = subprocess.Popen("C:\\WINDOWS\\system32\\notepad.exe")
p2 = subprocess.Popen("C:\\WINDOWS\\system32\\notepad.exe")
time.sleep(.1)
note1 = module.Window.from_pid(p1.pid)
note2 = module.Window.from_pid(p2.pid)
print(note1)
print(note2)
if note1 and note2:
note2.position = (0, 0)
note2.size = (500, 300)
note1.size = (600, 600)
note1.attack_child(note2)
Path
convert to EXE to see the different.
import module
path = module.Path(__file__)
print(path.source)
print(path.source.join("test"))
print(path.app)
ThreadList
list using to get each element from multi thead
import threading
import module
lst = module.ThreadList([1, 2, 3, 4, 5])
def thread(index):
i = lst.next()
while i is not None:
print("Thread", index, "-", i)
i = lst.next()
threading.Thread(target=thread, args=(0, )).start()
threading.Thread(target=thread, args=(1, )).start()
threading.Thread(target=thread, args=(2, )).start()
hide_console
Hide console of application. It isn't like --noconsole
in pyinstaller
import module
module.hide_console()
alert_excepthook
Will have a message box about exceptions, not only on the console
import module
module.alert_excepthook()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
module-Thw-0.0.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for module_Thw-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f70c6e0ddaeb62bea1bea23871184130fe3066a33b4dc6960b775db28405dceb |
|
MD5 | 6c153accf2e118bef2a63b54ee0da680 |
|
BLAKE2b-256 | bf0b49497939319a8ce77c60ba9fab2e9c1c5b182c75c0b0d26d4d015cb613f7 |