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
| #!/usr/local/bin/python3.9 | |
| __all__ = ['PStatTree'] | |
| import contextlib | |
| import functools | |
| from panda3d.core import PStatCollector |
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 ctypes | |
| import os | |
| import platform | |
| from typing import Optional, Union | |
| from panda3d import core as p3d | |
| from direct.directnotify import DirectNotifyGlobal | |
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 numpy as np | |
| import matplotlib.pylab as plt | |
| from PIL import Image | |
| PATH = input('Path to tilesheet: ') | |
| TILESHEET = Image.open(PATH) | |
| TILESHEET_DATA = np.array(TILESHEET) | |
| TILESHEET_INFO = (16, 32, 1) # tile size, run, and offset |
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
| # -*- coding: utf-8 -*- | |
| import sys | |
| def print_progress(stage, total, prefix='', suffix='', decimals=1, bar_length=100): | |
| """ | |
| Call in a loop to create terminal progress bar | |
| @params: | |
| stage - Required : current stage (Int) | |
| total - Required : total stages (Int) |
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 ast | |
| from PyQt5.QtCore import Qt | |
| from PyQt5.QtGui import QCursor | |
| from PyQt5.QtWidgets import QAbstractItemView, QTreeWidget, QTreeWidgetItem | |
| from PyQt5.QtWidgets import QMenu | |
| class DataTreeItem(QTreeWidgetItem): |