Package bitfling :: Module guihelper
[show private | hide private]
[frames | no frames]

Module bitfling.guihelper

Various convenience functions and widgets to assist the gui
Classes
LogWindow  

Function Summary
  formatexception(excinfo, lastframes)
Pretty print exception, including local variable information.
string getresourcefile(filename)
Returns name of file by adding it to resource directory pathname
Bool IsGtk()
Are we running on GTK (Linux)
Bool IsMac()
Are we running on Mac
Bool IsMSWindows()
Are we running on Windows?
  run(*args)
Execute the command.

Function Details

formatexception(excinfo=None, lastframes=8)

Pretty print exception, including local variable information.

See Python Cookbook, recipe 14.4.
Parameters:
excinfo - tuple of information returned from sys.exc_info when the exception occurred. If you don't supply this then information about the current exception being handled is used
lastframes - local variables are shown for these number of frames
Returns:
A pretty printed string

getresourcefile(filename)

Returns name of file by adding it to resource directory pathname

No attempt is made to verify the file exists
Returns:
string

IsGtk()

Are we running on GTK (Linux)
Returns:
Bool

IsMac()

Are we running on Mac
Returns:
Bool

IsMSWindows()

Are we running on Windows?
Returns:
Bool

run(*args)

Execute the command.

The path is searched

Generated by Epydoc 2.1 on Fri Aug 15 18:58:25 2008 http://epydoc.sf.net