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 39 of file dialog_scripting.cpp.

40  : DIALOG_SCRIPTING_BASE( parent )
41 {
42  SetFocus();
43 
44 }
DIALOG_SCRIPTING_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Scripting Test Window"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), 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 48 of file dialog_scripting.cpp.

References DIALOG_SCRIPTING_BASE::m_txScript.

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

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: