Module guihelper
[show private | hide private]
[frames | no frames]

Module guihelper

Various helper routines for gui based code
Classes
ArtProvider  
MultiMessageBox  

Function Summary
  basename(str)
Returns the last part of the name (everything after last /)
  BusyWrapper(method)
  dirname(str)
Returns everything before the last / in the name
wxBitmap getbitmap(name)
Gets a bitmap from the resource directory
  getextension(str)
Returns the extension of a filename (characters after last period)
  gethelpfilename()
Returns what name we use for the helpfile
wx.Image getimage(name)
Gets an image from the resource directory
  GetOpenCommand(mimetypes, filename)
string getresourcefile(filename)
Returns name of file by adding it to resource directory pathname
  getresourcefiles(wildcard)
Returns a list of filenames matching the wildcard in the resource directory
  getwxmimetype(filename)
Returns wx's mime type for the extension of filename, or None
Bool IsGtk()
Are we running on GTK (Linux)
Bool IsMac()
Are we running on Mac
Bool IsMSWindows()
Are we running on Windows?

Function Details

basename(str)

Returns the last part of the name (everything after last /)

dirname(str)

Returns everything before the last / in the name

getbitmap(name)

Gets a bitmap from the resource directory
Returns:
wxBitmap

getextension(str)

Returns the extension of a filename (characters after last period)

An empty string is returned if the file has no extension. The period character is not returned

gethelpfilename()

Returns what name we use for the helpfile

Without trailing extension as wxBestHelpController figures that out

getimage(name)

Gets an image from the resource directory
Returns:
wx.Image

getresourcefile(filename)

Returns name of file by adding it to resource directory pathname

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

getresourcefiles(wildcard)

Returns a list of filenames matching the wildcard in the resource directory

getwxmimetype(filename)

Returns wx's mime type for the extension of filename, or None

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

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