KiCad PCB EDA Suite
DIALOG_SCRIPTING Class Reference

#include <dialog_scripting.h>

Inheritance diagram for DIALOG_SCRIPTING:
DIALOG_SCRIPTING_BASE

Public Member Functions

 DIALOG_SCRIPTING (wxWindow *parent)
 

Protected Attributes

wxTextCtrl * m_txScript
 
wxButton * m_btRun
 

Private Member Functions

void OnRunButtonClick (wxCommandEvent &event) override
 

Detailed Description

Definition at line 30 of file dialog_scripting.h.

Constructor & Destructor Documentation

DIALOG_SCRIPTING::DIALOG_SCRIPTING ( wxWindow *  parent)

Definition at line 37 of file dialog_scripting.cpp.

38  : DIALOG_SCRIPTING_BASE( parent )
39 {
40  SetFocus();
41 
42 }
DIALOG_SCRIPTING_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Scripting Test Window"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 468), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL)

Member Function Documentation

void DIALOG_SCRIPTING::OnRunButtonClick ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_SCRIPTING_BASE.

Definition at line 46 of file dialog_scripting.cpp.

References DIALOG_SCRIPTING_BASE::m_txScript.

47 {
48  wxCharBuffer buffer = m_txScript->GetValue().ToUTF8();
49  PyRun_SimpleString(buffer.data());
50 }

Member Data Documentation

wxButton* DIALOG_SCRIPTING_BASE::m_btRun
protectedinherited
wxTextCtrl* DIALOG_SCRIPTING_BASE::m_txScript
protectedinherited

The documentation for this class was generated from the following files: