remove kwd argument for functions only with flag METH_VARARGS

This commit is contained in:
wmayer
2018-08-08 17:39:32 +02:00
parent 0b40519f3f
commit a9c4bcb5d6
12 changed files with 285 additions and 290 deletions

View File

@@ -69,127 +69,127 @@ using namespace Gui;
// FCApplication Methods // Methods structure
PyMethodDef Application::Methods[] = {
{"activateWorkbench",(PyCFunction) Application::sActivateWorkbenchHandler,1,
{"activateWorkbench",(PyCFunction) Application::sActivateWorkbenchHandler, METH_VARARGS,
"activateWorkbench(string) -> None\n\n"
"Activate the workbench by name"},
{"addWorkbench", (PyCFunction) Application::sAddWorkbenchHandler, 1,
{"addWorkbench", (PyCFunction) Application::sAddWorkbenchHandler, METH_VARARGS,
"addWorkbench(string, object) -> None\n\n"
"Add a workbench under a defined name."},
{"removeWorkbench", (PyCFunction) Application::sRemoveWorkbenchHandler, 1,
{"removeWorkbench", (PyCFunction) Application::sRemoveWorkbenchHandler, METH_VARARGS,
"removeWorkbench(string) -> None\n\n"
"Remove the workbench with name"},
{"getWorkbench", (PyCFunction) Application::sGetWorkbenchHandler, 1,
{"getWorkbench", (PyCFunction) Application::sGetWorkbenchHandler, METH_VARARGS,
"getWorkbench(string) -> object\n\n"
"Get the workbench by its name"},
{"listWorkbenches", (PyCFunction) Application::sListWorkbenchHandlers, 1,
{"listWorkbenches", (PyCFunction) Application::sListWorkbenchHandlers, METH_VARARGS,
"listWorkbenches() -> list\n\n"
"Show a list of all workbenches"},
{"activeWorkbench", (PyCFunction) Application::sActiveWorkbenchHandler, 1,
{"activeWorkbench", (PyCFunction) Application::sActiveWorkbenchHandler, METH_VARARGS,
"activeWorkbench() -> object\n\n"
"Return the active workbench object"},
{"addResourcePath", (PyCFunction) Application::sAddResPath, 1,
{"addResourcePath", (PyCFunction) Application::sAddResPath, METH_VARARGS,
"addResourcePath(string) -> None\n\n"
"Add a new path to the system where to find resource files\n"
"like icons or localization files"},
{"addLanguagePath", (PyCFunction) Application::sAddLangPath, 1,
{"addLanguagePath", (PyCFunction) Application::sAddLangPath, METH_VARARGS,
"addLanguagePath(string) -> None\n\n"
"Add a new path to the system where to find language files"},
{"addIconPath", (PyCFunction) Application::sAddIconPath, 1,
{"addIconPath", (PyCFunction) Application::sAddIconPath, METH_VARARGS,
"addIconPath(string) -> None\n\n"
"Add a new path to the system where to find icon files"},
{"addIcon", (PyCFunction) Application::sAddIcon, 1,
{"addIcon", (PyCFunction) Application::sAddIcon, METH_VARARGS,
"addIcon(string, string or list) -> None\n\n"
"Add an icon as file name or in XPM format to the system"},
{"getMainWindow", (PyCFunction) Application::sGetMainWindow, 1,
{"getMainWindow", (PyCFunction) Application::sGetMainWindow, METH_VARARGS,
"getMainWindow() -> QMainWindow\n\n"
"Return the main window instance"},
{"updateGui", (PyCFunction) Application::sUpdateGui, 1,
{"updateGui", (PyCFunction) Application::sUpdateGui, METH_VARARGS,
"updateGui() -> None\n\n"
"Update the main window and all its windows"},
{"updateLocale", (PyCFunction) Application::sUpdateLocale, 1,
{"updateLocale", (PyCFunction) Application::sUpdateLocale, METH_VARARGS,
"updateLocale() -> None\n\n"
"Update the localization"},
{"getLocale", (PyCFunction) Application::sGetLocale, 1,
{"getLocale", (PyCFunction) Application::sGetLocale, METH_VARARGS,
"getLocale() -> string\n\n"
"Returns the locale currently used by FreeCAD"},
{"setLocale", (PyCFunction) Application::sSetLocale, 1,
{"setLocale", (PyCFunction) Application::sSetLocale, METH_VARARGS,
"getLocale(string) -> None\n\n"
"Sets the locale used by FreeCAD. You can set it by\n"
"top-level domain (e.g. \"de\") or the language name (e.g. \"German\")"},
{"supportedLocales", (PyCFunction) Application::sSupportedLocales, 1,
{"supportedLocales", (PyCFunction) Application::sSupportedLocales, METH_VARARGS,
"supportedLocales() -> dict\n\n"
"Returns a dict of all supported languages/top-level domains"},
{"createDialog", (PyCFunction) Application::sCreateDialog, 1,
{"createDialog", (PyCFunction) Application::sCreateDialog, METH_VARARGS,
"createDialog(string) -- Open a UI file"},
{"addPreferencePage", (PyCFunction) Application::sAddPreferencePage,1,
{"addPreferencePage", (PyCFunction) Application::sAddPreferencePage, METH_VARARGS,
"addPreferencePage(string,string) -- Add a UI form to the\n"
"preferences dialog. The first argument specifies the file name"
"and the second specifies the group name"},
{"addCommand", (PyCFunction) Application::sAddCommand, 1,
{"addCommand", (PyCFunction) Application::sAddCommand, METH_VARARGS,
"addCommand(string, object) -> None\n\n"
"Add a command object"},
{"runCommand", (PyCFunction) Application::sRunCommand, 1,
{"runCommand", (PyCFunction) Application::sRunCommand, METH_VARARGS,
"runCommand(string) -> None\n\n"
"Run command with name"},
{"listCommands", (PyCFunction) Application::sListCommands,1,
{"listCommands", (PyCFunction) Application::sListCommands, METH_VARARGS,
"listCommands() -> list of strings\n\n"
"Returns a list of all commands known to FreeCAD."},
{"SendMsgToActiveView", (PyCFunction) Application::sSendActiveView, 1,
{"SendMsgToActiveView", (PyCFunction) Application::sSendActiveView, METH_VARARGS,
"deprecated -- use class View"},
{"hide", (PyCFunction) Application::sHide, 1,
{"hide", (PyCFunction) Application::sHide, METH_VARARGS,
"deprecated"},
{"show", (PyCFunction) Application::sShow, 1,
{"show", (PyCFunction) Application::sShow, METH_VARARGS,
"deprecated"},
{"hideObject", (PyCFunction) Application::sHideObject, 1,
{"hideObject", (PyCFunction) Application::sHideObject, METH_VARARGS,
"hideObject(object) -> None\n\n"
"Hide the view provider to the given object"},
{"showObject", (PyCFunction) Application::sShowObject, 1,
{"showObject", (PyCFunction) Application::sShowObject, METH_VARARGS,
"showObject(object) -> None\n\n"
"Show the view provider to the given object"},
{"open", (PyCFunction) Application::sOpen, 1,
{"open", (PyCFunction) Application::sOpen, METH_VARARGS,
"Open a macro, Inventor or VRML file"},
{"insert", (PyCFunction) Application::sInsert, 1,
{"insert", (PyCFunction) Application::sInsert, METH_VARARGS,
"Open a macro, Inventor or VRML file"},
{"export", (PyCFunction) Application::sExport, 1,
{"export", (PyCFunction) Application::sExport, METH_VARARGS,
"save scene to Inventor or VRML file"},
{"activeDocument", (PyCFunction) Application::sActiveDocument, 1,
{"activeDocument", (PyCFunction) Application::sActiveDocument, METH_VARARGS,
"activeDocument() -> object or None\n\n"
"Return the active document or None if no one exists"},
{"setActiveDocument", (PyCFunction) Application::sSetActiveDocument,1,
{"setActiveDocument", (PyCFunction) Application::sSetActiveDocument, METH_VARARGS,
"setActiveDocument(string or App.Document) -> None\n\n"
"Activate the specified document"},
{"activeView", (PyCFunction)Application::sActiveView, 1,
{"activeView", (PyCFunction)Application::sActiveView, METH_VARARGS,
"activeView() -> object or None\n\n"
"Return the active view of the active document or None if no one exists"},
{"getDocument", (PyCFunction) Application::sGetDocument, 1,
{"getDocument", (PyCFunction) Application::sGetDocument, METH_VARARGS,
"getDocument(string) -> object\n\n"
"Get a document by its name"},
{"doCommand", (PyCFunction) Application::sDoCommand, 1,
{"doCommand", (PyCFunction) Application::sDoCommand, METH_VARARGS,
"doCommand(string) -> None\n\n"
"Prints the given string in the python console and runs it"},
{"doCommandGui", (PyCFunction) Application::sDoCommandGui, 1,
{"doCommandGui", (PyCFunction) Application::sDoCommandGui, METH_VARARGS,
"doCommandGui(string) -> None\n\n"
"Prints the given string in the python console and runs it but doesn't record it in macros"},
{"addModule", (PyCFunction) Application::sAddModule, 1,
{"addModule", (PyCFunction) Application::sAddModule, METH_VARARGS,
"addModule(string) -> None\n\n"
"Prints the given module import only once in the macro recording"},
{"showDownloads", (PyCFunction) Application::sShowDownloads,1,
{"showDownloads", (PyCFunction) Application::sShowDownloads, METH_VARARGS,
"showDownloads() -> None\n\n"
"Shows the downloads manager window"},
{"showPreferences", (PyCFunction) Application::sShowPreferences,1,
{"showPreferences", (PyCFunction) Application::sShowPreferences, METH_VARARGS,
"showPreferences([string,int]) -> None\n\n"
"Shows the preferences window. If string and int are provided, the given page index in the given group is shown."},
{"createViewer", (PyCFunction) Application::sCreateViewer,1,
{"createViewer", (PyCFunction) Application::sCreateViewer, METH_VARARGS,
"createViewer([int]) -> View3DInventor/SplitView3DInventor\n\n"
"shows and returns a viewer. If the integer argument is given and > 1: -> splitViewer"},
{"getMarkerIndex", (PyCFunction) Application::sGetMarkerIndex, 1,
{"getMarkerIndex", (PyCFunction) Application::sGetMarkerIndex, METH_VARARGS,
"Get marker index according to marker size setting"},
{NULL, NULL, 0, NULL} /* Sentinel */
};
PyObject* Gui::Application::sActiveDocument(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Gui::Application::sActiveDocument(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -203,7 +203,7 @@ PyObject* Gui::Application::sActiveDocument(PyObject * /*self*/, PyObject *args,
}
}
PyObject* Gui::Application::sActiveView(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Gui::Application::sActiveView(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -219,7 +219,7 @@ PyObject* Gui::Application::sActiveView(PyObject * /*self*/, PyObject *args, PyO
Py_Return;
}
PyObject* Gui::Application::sSetActiveDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Gui::Application::sSetActiveDocument(PyObject * /*self*/, PyObject *args)
{
Document *pcDoc = 0;
@@ -259,7 +259,7 @@ PyObject* Gui::Application::sSetActiveDocument(PyObject * /*self*/, PyObject *ar
Py_Return;
}
PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args)
{
char *pstr=0;
if (PyArg_ParseTuple(args, "s", &pstr)) {
@@ -286,7 +286,7 @@ PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args,PyObject
return 0;
}
PyObject* Application::sHide(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sHide(PyObject * /*self*/, PyObject *args)
{
char *psFeatStr;
if (!PyArg_ParseTuple(args, "s;Name of the object to hide has to be given!",&psFeatStr))
@@ -300,7 +300,7 @@ PyObject* Application::sHide(PyObject * /*self*/, PyObject *args,PyObject * /*kw
Py_Return;
}
PyObject* Application::sShow(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sShow(PyObject * /*self*/, PyObject *args)
{
char *psFeatStr;
if (!PyArg_ParseTuple(args, "s;Name of the object to show has to be given!",&psFeatStr))
@@ -314,7 +314,7 @@ PyObject* Application::sShow(PyObject * /*self*/, PyObject *args,PyObject * /*kw
Py_Return;
}
PyObject* Application::sHideObject(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sHideObject(PyObject * /*self*/, PyObject *args)
{
PyObject *object;
if (!PyArg_ParseTuple(args, "O!",&(App::DocumentObjectPy::Type),&object))
@@ -326,7 +326,7 @@ PyObject* Application::sHideObject(PyObject * /*self*/, PyObject *args,PyObject
Py_Return;
}
PyObject* Application::sShowObject(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sShowObject(PyObject * /*self*/, PyObject *args)
{
PyObject *object;
if (!PyArg_ParseTuple(args, "O!",&(App::DocumentObjectPy::Type),&object))
@@ -338,7 +338,7 @@ PyObject* Application::sShowObject(PyObject * /*self*/, PyObject *args,PyObject
Py_Return;
}
PyObject* Application::sOpen(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sOpen(PyObject * /*self*/, PyObject *args)
{
// only used to open Python files
char* Name;
@@ -408,7 +408,7 @@ PyObject* Application::sOpen(PyObject * /*self*/, PyObject *args,PyObject * /*kw
Py_Return;
}
PyObject* Application::sInsert(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sInsert(PyObject * /*self*/, PyObject *args)
{
char* Name;
char* DocName=0;
@@ -479,7 +479,7 @@ PyObject* Application::sInsert(PyObject * /*self*/, PyObject *args,PyObject * /*
Py_Return;
}
PyObject* Application::sExport(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sExport(PyObject * /*self*/, PyObject *args)
{
PyObject* object;
char* Name;
@@ -561,7 +561,7 @@ PyObject* Application::sExport(PyObject * /*self*/, PyObject *args,PyObject * /*
Py_Return;
}
PyObject* Application::sSendActiveView(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSendActiveView(PyObject * /*self*/, PyObject *args)
{
char *psCommandStr;
PyObject *suppress=Py_False;
@@ -583,7 +583,7 @@ PyObject* Application::sSendActiveView(PyObject * /*self*/, PyObject *args,PyObj
return Py_None;
}
PyObject* Application::sGetMainWindow(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetMainWindow(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -600,7 +600,7 @@ PyObject* Application::sGetMainWindow(PyObject * /*self*/, PyObject *args,PyObje
}
}
PyObject* Application::sUpdateGui(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sUpdateGui(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -611,7 +611,7 @@ PyObject* Application::sUpdateGui(PyObject * /*self*/, PyObject *args,PyObject *
return Py_None;
}
PyObject* Application::sUpdateLocale(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sUpdateLocale(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -622,7 +622,7 @@ PyObject* Application::sUpdateLocale(PyObject * /*self*/, PyObject *args,PyObjec
return Py_None;
}
PyObject* Application::sGetLocale(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetLocale(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -635,7 +635,7 @@ PyObject* Application::sGetLocale(PyObject * /*self*/, PyObject *args,PyObject *
#endif
}
PyObject* Application::sSetLocale(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSetLocale(PyObject * /*self*/, PyObject *args)
{
char* name;
if (!PyArg_ParseTuple(args, "s", &name))
@@ -655,7 +655,7 @@ PyObject* Application::sSetLocale(PyObject * /*self*/, PyObject *args,PyObject *
return Py_None;
}
PyObject* Application::sSupportedLocales(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSupportedLocales(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -671,7 +671,7 @@ PyObject* Application::sSupportedLocales(PyObject * /*self*/, PyObject *args,PyO
return Py::new_reference_to(dict);
}
PyObject* Application::sCreateDialog(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sCreateDialog(PyObject * /*self*/, PyObject *args)
{
char* fn = 0;
if (!PyArg_ParseTuple(args, "s", &fn))
@@ -690,7 +690,7 @@ PyObject* Application::sCreateDialog(PyObject * /*self*/, PyObject *args,PyObjec
return pPyResource;
}
PyObject* Application::sAddPreferencePage(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddPreferencePage(PyObject * /*self*/, PyObject *args)
{
char *fn, *grp;
if (PyArg_ParseTuple(args, "ss", &fn,&grp)) {
@@ -735,7 +735,7 @@ PyObject* Application::sAddPreferencePage(PyObject * /*self*/, PyObject *args,Py
return 0;
}
PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *args)
{
char* psKey;
if (!PyArg_ParseTuple(args, "s", &psKey))
@@ -776,7 +776,7 @@ PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *
return Py_None;
}
PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args)
{
PyObject* pcObject;
std::string item;
@@ -834,7 +834,7 @@ PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args,
return Py_None;
}
PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *args)
{
char* psKey;
if (!PyArg_ParseTuple(args, "s", &psKey))
@@ -854,7 +854,7 @@ PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
return Py_None;
}
PyObject* Application::sGetWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetWorkbenchHandler(PyObject * /*self*/, PyObject *args)
{
char* psKey;
if (!PyArg_ParseTuple(args, "s", &psKey))
@@ -871,7 +871,7 @@ PyObject* Application::sGetWorkbenchHandler(PyObject * /*self*/, PyObject *args,
return pcWorkbench;
}
PyObject* Application::sListWorkbenchHandlers(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Application::sListWorkbenchHandlers(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -880,7 +880,7 @@ PyObject* Application::sListWorkbenchHandlers(PyObject * /*self*/, PyObject *arg
return Instance->_pcWorkbenchDictionary;
}
PyObject* Application::sActiveWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sActiveWorkbenchHandler(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -904,7 +904,7 @@ PyObject* Application::sActiveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
return pcWorkbench;
}
PyObject* Application::sAddResPath(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddResPath(PyObject * /*self*/, PyObject *args)
{
char* filePath;
if (!PyArg_ParseTuple(args, "et", "utf-8", &filePath))
@@ -923,7 +923,7 @@ PyObject* Application::sAddResPath(PyObject * /*self*/, PyObject *args,PyObject
return Py_None;
}
PyObject* Application::sAddLangPath(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddLangPath(PyObject * /*self*/, PyObject *args)
{
char* filePath;
if (!PyArg_ParseTuple(args, "et", "utf-8", &filePath))
@@ -941,7 +941,7 @@ PyObject* Application::sAddLangPath(PyObject * /*self*/, PyObject *args,PyObject
return Py_None;
}
PyObject* Application::sAddIconPath(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddIconPath(PyObject * /*self*/, PyObject *args)
{
char* filePath;
if (!PyArg_ParseTuple(args, "et", "utf-8", &filePath))
@@ -959,7 +959,7 @@ PyObject* Application::sAddIconPath(PyObject * /*self*/, PyObject *args,PyObject
return Py_None;
}
PyObject* Application::sAddIcon(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddIcon(PyObject * /*self*/, PyObject *args)
{
char *iconName;
char *pixmap;
@@ -996,7 +996,7 @@ PyObject* Application::sAddIcon(PyObject * /*self*/, PyObject *args,PyObject * /
return Py_None;
}
PyObject* Application::sAddCommand(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddCommand(PyObject * /*self*/, PyObject *args)
{
char* pName;
char* pSource=0;
@@ -1074,7 +1074,7 @@ PyObject* Application::sAddCommand(PyObject * /*self*/, PyObject *args,PyObject
return Py_None;
}
PyObject* Application::sRunCommand(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sRunCommand(PyObject * /*self*/, PyObject *args)
{
char* pName;
int item = 0;
@@ -1093,7 +1093,7 @@ PyObject* Application::sRunCommand(PyObject * /*self*/, PyObject *args,PyObject
}
}
PyObject* Application::sListCommands(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sListCommands(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -1112,7 +1112,7 @@ PyObject* Application::sListCommands(PyObject * /*self*/, PyObject *args,PyObjec
return pyList;
}
PyObject* Application::sDoCommand(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Application::sDoCommand(PyObject * /*self*/, PyObject *args)
{
char *sCmd=0;
if (!PyArg_ParseTuple(args, "s", &sCmd))
@@ -1133,7 +1133,7 @@ PyObject* Application::sDoCommand(PyObject * /*self*/, PyObject *args, PyObject
return PyRun_String(sCmd, Py_file_input, dict, dict);
}
PyObject* Application::sDoCommandGui(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Application::sDoCommandGui(PyObject * /*self*/, PyObject *args)
{
char *sCmd=0;
if (!PyArg_ParseTuple(args, "s", &sCmd))
@@ -1154,7 +1154,7 @@ PyObject* Application::sDoCommandGui(PyObject * /*self*/, PyObject *args, PyObje
return PyRun_String(sCmd, Py_file_input, dict, dict);
}
PyObject* Application::sAddModule(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddModule(PyObject * /*self*/, PyObject *args)
{
char *pstr=0;
if (!PyArg_ParseTuple(args, "s", &pstr))
@@ -1172,7 +1172,7 @@ PyObject* Application::sAddModule(PyObject * /*self*/, PyObject *args,PyObject *
}
}
PyObject* Application::sShowDownloads(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sShowDownloads(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -1182,7 +1182,7 @@ PyObject* Application::sShowDownloads(PyObject * /*self*/, PyObject *args,PyObje
return Py_None;
}
PyObject* Application::sShowPreferences(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sShowPreferences(PyObject * /*self*/, PyObject *args)
{
char *pstr=0;
int idx=0;
@@ -1200,7 +1200,7 @@ PyObject* Application::sShowPreferences(PyObject * /*self*/, PyObject *args,PyOb
return Py_None;
}
PyObject* Application::sCreateViewer(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sCreateViewer(PyObject * /*self*/, PyObject *args)
{
int num_of_views = 1;
char* title = nullptr;
@@ -1229,7 +1229,7 @@ PyObject* Application::sCreateViewer(PyObject * /*self*/, PyObject *args,PyObjec
return Py_None;
}
PyObject* Application::sGetMarkerIndex(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject* Application::sGetMarkerIndex(PyObject * /*self*/, PyObject *args)
{
char *pstr = 0;
int defSize = 9;