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

Module guihelper

source code

Various convenience functions and widgets to assist the gui

Classes [hide private]
  LogWindow
Functions [hide private]
Bool
IsMSWindows()
Are we running on Windows?
source code
Bool
IsGtk()
Are we running on GTK (Linux)
source code
Bool
IsMac()
Are we running on Mac
source code
 
formatexception(excinfo=None, lastframes=8)
Pretty print exception, including local variable information.
source code
string
getresourcefile(filename)
Returns name of file by adding it to resource directory pathname
source code
 
run(*args)
Execute the command.
source code
Variables [hide private]
  p = 'c:\\projects\\bitpim\\src'
  resourcedirectory = 'c:\\projects\\bitpim\\src\\resources'
Function Details [hide private]

formatexception(excinfo=None, lastframes=8)

source code 

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)

source code 

Returns name of file by adding it to resource directory pathname

No attempt is made to verify the file exists

Returns: string

run(*args)

source code 

Execute the command.

The path is searched