FileDeviceMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| FileDevice prettyqt.core.filedevice |
||
| FileMixin prettyqt.core.file |
||
| SaveFile prettyqt.core.savefile Interface for safely writing to files. |
Base classes
| Name | Children | Inherits |
|---|---|---|
| IODeviceMixin prettyqt.core.iodevice |
||
| object builtins The base class of the class hierarchy. |
â‹” Inheritance diagram
graph TD
653622793["core.FileDeviceMixin"]
1351663398["core.IODeviceMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
1351663398 --> 653622793
3227531497 --> 1351663398
2751680898 --> 3227531497
2751680898 --> 1351663398
2751680898 --> 653622793
🛈 DocStrings
Bases: IODeviceMixin, _FileDeviceBase
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) -> dt.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 |