func to prop

This commit is contained in:
Erik Fröjdh
2024-11-05 16:00:11 +01:00
parent 7f244e22a2
commit 2efb763242
2 changed files with 5 additions and 5 deletions

View File

@ -47,8 +47,8 @@ void define_file_io_bindings(py::module &m) {
})
.def("seek", &CtbRawFile::seek)
.def("tell", &CtbRawFile::tell)
.def("image_size_in_bytes", &CtbRawFile::image_size_in_bytes)
.def("frames_in_file", &CtbRawFile::frames_in_file);
.def_property_readonly("image_size_in_bytes", &CtbRawFile::image_size_in_bytes)
.def_property_readonly("frames_in_file", &CtbRawFile::frames_in_file);
py::class_<File>(m, "File")
.def(py::init([](const std::filesystem::path &fname) {