set the global 'display' var to the otk::Display in use
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/python.cc
→
src/python.cc
@@ -34,6 +34,7 @@ // import the otk and openbox modules into the main namespace
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__");