set the global 'display' var to the otk::Display in use
This commit is contained in:
parent
b989ec13f7
commit
784b879a52
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ void python_init(char *argv0)
|
||||||
PyRun_SimpleString("from openbox import *;");
|
PyRun_SimpleString("from openbox import *;");
|
||||||
// set up convenience global variables
|
// set up convenience global variables
|
||||||
PyRun_SimpleString("openbox = Openbox_instance()");
|
PyRun_SimpleString("openbox = Openbox_instance()");
|
||||||
|
PyRun_SimpleString("display = Display_instance()");
|
||||||
|
|
||||||
// set up access to the python global variables
|
// set up access to the python global variables
|
||||||
PyObject *obmodule = PyImport_AddModule("__main__");
|
PyObject *obmodule = PyImport_AddModule("__main__");
|
||||||
|
|
Loading…
Reference in a new issue