set the global 'display' var to the otk::Display in use

This commit is contained in:
Dana Jansens 2003-01-13 09:59:38 +00:00
parent b989ec13f7
commit 784b879a52

View file

@ -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__");