diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-13 09:59:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-13 09:59:38 +0000 |
| commit | 784b879a52570828bf66ac6e4a87983e9cc70747 (patch) | |
| tree | fc71d4c35c9d5f5d34f4c202fa7ed6145d7c87dc | |
| parent | b989ec13f7774bdb4b2b8675a65da56cb2fe0ef4 (diff) | |
set the global 'display' var to the otk::Display in use
| -rw-r--r-- | src/python.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python.cc b/src/python.cc index 12e74eee..d4cba31e 100644 --- a/src/python.cc +++ b/src/python.cc @@ -34,6 +34,7 @@ void python_init(char *argv0) PyRun_SimpleString("from openbox import *;"); // set up convenience global variables PyRun_SimpleString("openbox = Openbox_instance()"); + PyRun_SimpleString("display = Display_instance()"); // set up access to the python global variables PyObject *obmodule = PyImport_AddModule("__main__"); |
