TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #remount

当前筛选 #remount清除筛选
Libreware

@libreware · Post #972 · 12.08.2021 г., 09:52

Rclone Remount Remount cloud storage locally during boot via rclone & fusermount directly on your Android powered smart device. Virtually limitless storage expansion with support for dozens of cloud providers including Dropbox, GDrive, OneDrive, SFTP & many more. Extremely useful for devices without physical storage expansion capabilities. Also great for streaming large media files without need for full caching. Binaries compiled using Termux. Features: Support for arm, arm64, & x86 Huge list of supported cloud storage providers Apps with ability to specify paths can access /mnt/cloud/ Most file explorers work just fine (issue #9) Mount points use names of remote(s) in rclone.conf Specify custom rclone params for each remote via /sdcard/.rclone/.REMOTE.param Access remotes via http://127.0.0.1:38762 Access remotes via ftp://127.0.0.1:38763 Mount bind to /sdcard/ (see issue #5) Support for Work Profiles https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone #rclone#remount#cloud#alternatives