MCPcopy Create free account
hub / github.com/mhammond/pywin32 / ui_doc_set_path_name

Function ui_doc_set_path_name

Pythonwin/win32doc.cpp:329–347  ·  view source on GitHub ↗

@pymethod |PyCDocument|SetPathName|Set the full path name for the document.

Source from the content-addressed store, hash-verified

327
328// @pymethod |PyCDocument|SetPathName|Set the full path name for the document.
329PyObject *
330ui_doc_set_path_name(PyObject *self, PyObject *args)
331{
332 TCHAR *path;
333 PyObject *obpath;
334 if (!PyArg_ParseTuple(args, "O:SetPathName", &obpath)) // @pyparm string|path||The full path of the file.
335 return NULL;
336
337 CDocument *pDoc;
338 if (!(pDoc=PyCDocument::GetDoc(self)))
339 return NULL;
340 if (!PyWinObject_AsTCHAR(obpath, &path, FALSE))
341 return NULL;
342 GUI_BGN_SAVE;
343 pDoc->SetPathName(path); // @pyseemfc CDocument|SetPathName
344 GUI_END_SAVE;
345 PyWinObject_FreeTCHAR(path);
346 RETURN_NONE;
347}
348
349// @pymethod |PyCDocument|SetTitle|Set the title of the document (ie, the name
350// to appear in the window caption for the document.

Callers 1

ui_re_doc_set_path_nameFunction · 0.85

Calls 1

SetPathNameMethod · 0.45

Tested by

no test coverage detected