This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| if __name__ == '__main__': | |
| print(f"Absolute path to *this* file is {Path(__file__).resolve()}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import PySide2 | |
| from PySide2.QtCore import QAbstractListModel, QModelIndex, Qt | |
| from database.models.subreddit import * | |
| from random import shuffle | |
| epoch = datetime.utcfromtimestamp(0) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QtQuick 2.10 | |
| import QtQuick.Controls 2.4 | |
| import QtQuick.Window 2.2 | |
| import QtQuick.Controls.Material 2.3 | |
| import QtQuick.Layouts 1.3 | |
| ApplicationWindow { | |
| id: appWindow | |
| Material.theme: Material.Dark | |
| title: qsTr("Test QML") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, sys | |
| from PySide2 import QtCore | |
| from PySide2.QtGui import QGuiApplication | |
| from PySide2.QtQml import QQmlApplicationEngine | |
| def qt_message_handler(mode, context, message): | |
| if mode == QtCore.QtInfoMsg: | |
| mode = 'Info' | |
| elif mode == QtCore.QtWarningMsg: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QtQuick 2.10 | |
| import QtQuick.Controls 2.4 | |
| import QtQuick.Window 2.2 | |
| import QtQuick.Controls.Material 2.3 | |
| import QtQuick.Layouts 1.3 | |
| Item { | |
| Text { | |
| id: submissionTitle | |
| text: title |