FileDeviceMixin
Base classes
Name | Children | Inherits |
---|---|---|
IODeviceMixin prettyqt.core.iodevice |
Subclasses
Class | Module | Description |
---|---|---|
FileDevice | prettyqt.core.filedevice | |
FileMixin | prettyqt.core.file | |
SaveFile | prettyqt.core.savefile |
⋔ Inheritance diagram
graph TD
1473299857968["core.FileDeviceMixin"]
1473299871632["core.IODeviceMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473299871632 --> 1473299857968
1473299815024 --> 1473299871632
140713234304496 --> 1473299815024
🛈 DocStrings
Bases: IODeviceMixin
Interface for reading from and writing to open files.
Source code in prettyqt\core\filedevice.py
get_error() -> FileErrorStr
get_file_time(typ: FileTimeStr | core.QFileDevice.FileTime) -> datetime.datetime | None
Return current file time.
Source code in prettyqt\core\filedevice.py
is_executable() -> bool
is_readable() -> bool
is_writable() -> bool
set_file_time(file_time: datatypes.DateTimeType, typ: FileTimeStr | core.QFileDevice.FileTime) -> bool
Set file time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_time |
DateTimeType
|
file time to set |
required |
typ |
FileTimeStr | FileTime
|
file time type |
required |