PythonExamples

From Glom
Jump to: navigation, search

Python Examples

Here are some useful examples of Python code that can be used for buttons in Glom.

Opening a URL in the browser

import gnomevfs
gnomevfs.url_show("http://www.openismus.com")

or

import gnomevfs
gnomevfs.url_show(record["website"])

This requires gnome-python to be installed (The python-gnome2 package in Ubuntu or Debian).