fix coding style issues.
This commit is contained in:
parent
840ad7f680
commit
c585964da9
|
@ -85,7 +85,7 @@ PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArgl
|
|||
}
|
||||
else
|
||||
{
|
||||
wxString msg = wxString::Format(_( "Method \"%s\" not found, or not callable" ), aMethod );
|
||||
wxString msg = wxString::Format( _( "Method \"%s\" not found, or not callable" ), aMethod );
|
||||
wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ void Refresh()
|
|||
|
||||
void WindowZoom( int xl, int yl, int width, int height )
|
||||
{
|
||||
EDA_RECT Rect( wxPoint( xl, yl ), wxSize( width, height )) ;
|
||||
EDA_RECT Rect( wxPoint( xl, yl ), wxSize( width, height ) );
|
||||
|
||||
if( s_PcbEditFrame )
|
||||
s_PcbEditFrame->Window_Zoom( Rect );
|
||||
|
|
|
@ -89,7 +89,7 @@ static void swigAddBuiltin()
|
|||
|
||||
/* allocate memory for the python module table */
|
||||
SwigImportInittab = (struct _inittab*) malloc(
|
||||
sizeof(struct _inittab) * (i + EXTRA_PYTHON_MODULES) );
|
||||
sizeof( struct _inittab ) * ( i + EXTRA_PYTHON_MODULES ) );
|
||||
|
||||
/* copy all pre-existing python modules into our newly created table */
|
||||
i = 0;
|
||||
|
@ -145,7 +145,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath )
|
|||
swigSwitchPythonBuiltin(); // switch the python builtin modules to our new list
|
||||
|
||||
Py_Initialize();
|
||||
PySys_SetArgv(Pgm().App().argc, Pgm().App().argv);
|
||||
PySys_SetArgv( Pgm().App().argc, Pgm().App().argv );
|
||||
|
||||
#ifdef KICAD_SCRIPTING_WXPYTHON
|
||||
PyEval_InitThreads();
|
||||
|
@ -155,7 +155,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath )
|
|||
// Make sure that that the correct version of wxPython is loaded. In systems where there
|
||||
// are different versions of wxPython installed this can lead to select wrong wxPython
|
||||
// version being selected.
|
||||
snprintf( cmd, sizeof(cmd), "import wxversion; wxversion.select('%s')", WXPYTHON_VERSION );
|
||||
snprintf( cmd, sizeof( cmd ), "import wxversion; wxversion.select( '%s' )", WXPYTHON_VERSION );
|
||||
|
||||
int retv = PyRun_SimpleString( cmd );
|
||||
|
||||
|
|
Loading…
Reference in New Issue