FX::FXPython Class Reference
[Python Support]

#include <FXPython.h>

List of all members.


Detailed Description

Miscellaneous Python facilities.

Apart from some minor static information functions and the ability to run embedded pieces of python, the major functionality of this class is solving the "setting python sort functions" problem. Using the static member of this class setSortFunc() you can set an arbitrary python function as the sort function for all of the TnFOX GUI classes using them.

Default implementations are provided for FX::FXListSortFunc, FX::FXFoldingListSortFunc, FX::FXIconListSortFunc, FX::TreeListSortFunc and FX::FXZSortFunc. You can set a maximum of 8 process-wide python sorting functions for each (adjustable by a compile-time constant).

See also:
FX::FXPythonInterp

Definition at line 108 of file FXPython.h.

Static Public Member Functions

static FXString interpreterPath ()
static FXString version ()
static FXString platform ()
static FXString programName ()
static void setProgramName (const FXString &name)
static void setArgv (int argc, char **argv)
static boost::python::handle globals ()
static boost::python::handle execute (const FXString &code, boost::python::handle<> context=globals())
static boost::python::handle evaluate (const FXString &code, boost::python::handle<> context=globals())
static void setFXComboBoxSortFunc (FXComboBox &list, boost::python::api::object *code)
static void setFXFoldingListSortFunc (FXFoldingList &list, boost::python::api::object *code)
static void setFXGLViewerSortFunc (FXGLViewer &list, boost::python::api::object *code)
static void setFXIconListSortFunc (FXIconList &list, boost::python::api::object *code)
static void setFXListSortFunc (FXList &list, boost::python::api::object *code)
static void setFXListBoxSortFunc (FXListBox &list, boost::python::api::object *code)
static void setFXTreeListSortFunc (FXTreeList &list, boost::python::api::object *code)
static void setFXTreeListBoxSortFunc (FXTreeListBox &list, boost::python::api::object *code)
static void int_throwPythonException ()
static void int_initEmbeddedEnv ()
static void int_runPythonThread (PyObject *self, QThread *cthread)
static void int_pythonObjectCreated (Generic::BoundFunctorV *detach)
static void int_pythonObjectDeleted (Generic::BoundFunctorV *detach)
static bool int_FXObjectHandle (long *ret, FXObject *self, FXObject *sender, FXSelector sel, void *ptr)


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:32:29 2009 for TnFOX by doxygen v1.4.7