Galry. Pywebkitgtk. Ghost.py. First of all, you need a instance of Ghost web client: from ghost import Ghost ghost = Ghost() Ghost provide a method that open web page the following way: page, resources = ghost.open(' This method returns a tuple of main resource (web page) and all loaded resources (such as CSS files, javascripts, images...). All those resources are backed as HttpResource objects.
At the moment Httpresource objects provide the following attributes: url: The resource url. http_status: The HTTP response status code. headers: The response headers as a dict. Executing javascripts inside webkit frame is one of the most interesting features provided by Ghost: result, resources = ghost.evaluate( "document.getElementById('my-input').getAttribute('value');") The return value is a tuple of: last javascript last statement result. loaded resources (e.g.: when an XHR is fired up).
As many other Ghost methods, you can pass an extra parameter that tells Ghost you expect a page loading: Fill a field. TkInter. Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk. Tkinter is not the only GuiProgramming toolkit for Python. It is however the most commonly used one. CameronLaird calls the yearly decision to keep TkInter "one of the minor traditions of the Python world. " The Tkinter wiki: Tkinter Documentation An Introduction To Tkinter (online) by FredrikLundh Tkinter reference: a GUI for Python (online or pdf) by John W. David McNab recommended the latter two as particularly "pythonic" in not insisting that readers think in Tcl.
Thinking in Tkinter is an introduction to some basic Tkinter programming concepts. Tkinter Extensions MythDebunking: TkInter is ugly on Windows ( Checking your Tkinter support A good way to systematically check whether your Tkinter support is working is the following. Enter an interactive Python interpreter in a shell on an X console. Kivy. PyGTK.