From 784b879a52570828bf66ac6e4a87983e9cc70747 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 13 Jan 2003 09:59:38 +0000 Subject: [PATCH] set the global 'display' var to the otk::Display in use --- src/python.cc | 1 + 1 file changed, 1 insertion(+) 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__"); -- 2.45.2