From: Dana Jansens Date: Mon, 13 Jan 2003 09:59:38 +0000 (+0000) Subject: set the global 'display' var to the otk::Display in use X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=784b879a52570828bf66ac6e4a87983e9cc70747;p=chaz%2Fopenbox set the global 'display' var to the otk::Display in use --- 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__");