mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Add simple tab-completion in interactive python shell
This commit is contained in:
@@ -87,6 +87,8 @@ public:
|
||||
static PyObject *QWidgetToPy(QWidget *widget) { return QtObjectToPython("QWidget", widget); }
|
||||
static QWidget *QWidgetFromPy(PyObject *widget);
|
||||
|
||||
QStringList completionOptions(QString base);
|
||||
|
||||
void setThreadBlocking(bool block) { m_Block = block; }
|
||||
bool threadBlocking() { return m_Block; }
|
||||
void abort() { m_Abort = true; }
|
||||
@@ -116,6 +118,9 @@ private:
|
||||
// globals are set into and any scripts execute in
|
||||
PyObject *context_namespace = NULL;
|
||||
|
||||
// a rlcompleter.Completer object used for tab-completion
|
||||
PyObject *m_Completer = NULL;
|
||||
|
||||
// this is set during an execute, so we can identify when a callback happens within our execute or
|
||||
// not
|
||||
PyThreadState *m_State = NULL;
|
||||
|
||||
Reference in New Issue
Block a user