Part of this code copied from from Listen (c) 2006 Mehdi Abaakouk
(http://listengnome.free.fr/)
Copyright: John Stowers, 2006 License: GPLv2
|
|
get_proportional_resize(desiredW,
desiredH,
currentW,
currentH)
Returns proportionally resized co-ordinates for an image |
source code
|
|
|
|
program_installed(app)
Check if the given app is installed. |
source code
|
|
|
|
new_tempfile(contents,
contentsAreText=True)
Returns a new File onject, which has been created in the system
temporary directory, and that has been filled with contents |
source code
|
|
|
|
new_tempdir()
Creates a new temporary directory |
source code
|
|
|
|
unique_list(seq)
The fastes way to unique-ify a list while retaining its order,
from http://www.peterbe.com/plog/uniqifiers-benchmark |
source code
|
|
|
|
random_string(length=5)
returns a random string of length |
source code
|
|
|
|
|
|
|
dataprovider_glade_get_widget(dataproviderfile,
gladefilename,
widget)
Gets a single gtk widget from a glad file |
source code
|
|
|
|
run_dialog(dialog,
window=None)
Runs a given dialog, and makes it transient for the given window
if any |
source code
|
|
|
|
|
|
|
dialog_set_busy_cursor(dlg)
Sets the dialog to display the busy cursor |
source code
|
|
|
|
dialog_reset_cursor(dlg)
Resets the dialog to display the plain Gtk cursor |
source code
|
|
|
|
md5_string(string)
Returns the md5 of the supplied string in readable hexdigest
string format |
source code
|
|
|
|
|
|
|
|
|
|
get_user_string()
Makes a user and machine dependant string in the form
username@hostname |
source code
|
|
|
|
|
|
|
|
|
|
encode_conversion_args(args)
encodes an args dictionary to a url string in the form
param=value¶m2=val2 |
source code
|
|
|
|
|
|
|
log_function_call(log)
A decorator that prints debug message showing the function name
and argument types to the supplied logger instance. |
source code
|
|
|
|
|
|
|
get_module_information(module,
versionAttributeName)
Prints the name, location and version of the supplied module |
source code
|
|