Remove 2 deprecate PyCFunction
This commit is contained in:
@@ -66,10 +66,6 @@ PyMethodDef Application::Methods[] = {
|
||||
"Change the import module name of a registered filetype"},
|
||||
{"getImportType", (PyCFunction) Application::sGetImportType, METH_VARARGS,
|
||||
"Get the name of the module that can import the filetype"},
|
||||
{"EndingAdd", (PyCFunction) Application::sAddImportType, METH_VARARGS, // deprecated
|
||||
"deprecated -- use addImportType"},
|
||||
{"EndingGet", (PyCFunction) Application::sGetImportType, METH_VARARGS, // deprecated
|
||||
"deprecated -- use getImportType"},
|
||||
{"addExportType", (PyCFunction) Application::sAddExportType, METH_VARARGS,
|
||||
"Register filetype for export"},
|
||||
{"changeExportModule", (PyCFunction) Application::sChangeExportModule, METH_VARARGS,
|
||||
|
||||
@@ -53,4 +53,4 @@ class ImageWorkbench ( Workbench ):
|
||||
Gui.addWorkbench(ImageWorkbench())
|
||||
|
||||
# Append the open handler
|
||||
FreeCAD.EndingAdd("Image formats (*.bmp *.jpg *.png *.xpm)","ImageGui")
|
||||
FreeCAD.addImportType("Image formats (*.bmp *.jpg *.png *.xpm)","ImageGui")
|
||||
|
||||
@@ -45,4 +45,4 @@ class SpreadsheetWorkbench ( Workbench ):
|
||||
Gui.addWorkbench(SpreadsheetWorkbench())
|
||||
|
||||
# Append the open handler
|
||||
FreeCAD.EndingAdd("Spreadsheet formats (*.csv)","SpreadsheetGui")
|
||||
FreeCAD.addImportType("Spreadsheet formats (*.csv)","SpreadsheetGui")
|
||||
|
||||
Reference in New Issue
Block a user