Python Snippets

Date

26th May 2013

Modified

2020-05-04 20:39

Author

Matthew Tunstall

How to call shell commands.
1
2
3
4
#!/usr/bin/env python
# A python example showing how to call shell commands from a python script.
import subprocess
subprocess.call("ls-l", shell="TRUE")

Python GTK3 Tutorial & Reference Documents

http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html