Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RPyROOTApplication.h
Go to the documentation of this file.
1// Author: Enric Tejedor CERN 04/2019
2// Original PyROOT code by Wim Lavrijsen, LBL
3
4/*************************************************************************
5 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_PyROOTApplication
13#define ROOT_PyROOTApplication
14
15// ROOT
16#include "TApplication.h"
17
18namespace PyROOT {
19
20// clang-format off
21/**
22\class PyROOT::RPyROOTApplication
23\brief Interactive application for Python.
24
25 The RPyROOTApplication sets up the nuts and bolts for interactive ROOT use
26 from Python, closely following TRint. Note that not everything is done here,
27 some bits are more easily done in Python and can be found in _application.py.
28*/
29// clang-format on
30
32public:
33 static PyObject *InitApplication(PyObject *self, PyObject *args);
35
36 RPyROOTApplication(const char *name, int *argc, char **argv);
38
39private:
40 static bool CreateApplication(int ignoreCmdLineOpts);
41 static void InitROOTGlobals();
42 static void InitROOTMessageCallback();
43};
44
45} // namespace PyROOT
46
47#endif
_object PyObject
char name[80]
Definition TGX11.cxx:110
Interactive application for Python.
static PyObject * InstallGUIEventInputHook(PyObject *self, PyObject *args)
Install a method hook for sending events to the GUI.
static void InitROOTMessageCallback()
Install the ROOT message handler which will turn ROOT error messages into Python exceptions.
static PyObject * InitApplication(PyObject *self, PyObject *args)
Initialize an RPyROOTApplication.
static void InitROOTGlobals()
Setup the basic ROOT globals gBenchmark, gStyle and gProgname, if not already set.
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
static void CreateApplication()
Static function used to create a default application environment.