Tony Tan tonytan748.github.io
1.

Tkinter Canvas Sample

A sample for tkinter canvas. import Tkinter root = Tkinter.Tk(0 canvas=Tkinter.Canvas(root,width=600,height=400,bg='white') canvas.create_text(302,77,text='Use Canvas', fill='...
2.

BeautifulSoup Basic

What is BeautifulSoup? BeautifulSoup is a Python library from www.crummy.com What is BeautifulSoup?BeautifulSoup is a Python library from www.crummy.com What can it doOn their...
3.

Remote control with telnetlib (Python recipe)

Remote control with telnetlib (Python recipe) Send commands to one or more logins using Python’s standard telnetlib module. auto_telnet.py - remote control via telnetimport os,...
4.

Using Telnet in Python

To make use of Telnet in Python, we can use the telnetlib module. Using Telnet in PythonTo make use of Telnet in Python, we can use the telnetlib module. That module provides ...
5.

Urllib2 User Agent

This post will show how to add headers to a HTTP request. This post will show how to add headers to a HTTP request. By default urllib2 identifies itself as Python-urllib/2.7 : G...
6.

Make your life easier with Virtualenvwrapper

When you do a lot of Python programming, you can make a mess of your system with Pip. Different apps need different requirements. One app needs version 1.2 of a package and anot...
7.

Python CGI Programming

How to write code in CGI programing What is CGI?The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a...
8.

How to use Date and Time in Python

This post will show some examples using Pythons datetime and time modules. Date and Time Example Let’s see what we can do with the datetime and time modules in Pythonimport time...
9.

Models in Python

In this part of the Python programming tutorial, we will talk about Python modules. A module is a file in which we have Python code. The modules in Python have the .py extension...
10.

Object oriented programming in Python

In this part of the Python programming tutorial, we will talk about object oriented programming in Python. There are three widely used programming paradigms there. Procedural pr...