"""SkeletonApp.""" from PyQt6 import QtGui from PyQt6 import QtCore from PyQt6 import QtWidgets from PyQt6.QtWidgets import QApplication, QSizePolicy from PyQt6.QtWidgets import QMainWindow from PyQt6.QtWidgets import QWidget # include from PyQt6.QtWidgets import QToolBar # include from PyQt6.QtGui import QIcon, QPalette, QGuiApplication # include from PyQt6.QtGui import QClipboard # include from PyQt6.QtGui import QColorSpace # include from PyQt6.QtCore import QDir # include from PyQt6.QtWidgets import QFileDialog # include from PyQt6.QtGui import QImageReader # include from PyQt6.QtGui import QImageWriter # include from PyQt6.QtCore import QBuffer # include from PyQt6.QtWidgets import QLabel # include from PyQt6.QtWidgets import QMenuBar # include from PyQt6.QtWidgets import QMessageBox # include from PyQt6.QtCore import QMimeData # include from PyQt6.QtGui import QPainter # include from PyQt6.QtGui import QScreen # include from PyQt6.QtWidgets import QScrollArea # include from PyQt6.QtWidgets import QScrollBar # include from PyQt6.QtCore import QStandardPaths # include from PyQt6.QtWidgets import QStatusBar from io import BytesIO # include from io import FileIO # include # # class ScrollArea: # """Scroll area.""" # def __init__(self, scroll_area=QScrollArea()): # pass # # # class ImageLabel: # """Image label.""" # def __init__(self, image_label=QLabel()): # pass class SkeletonApp(QMainWindow): """SkeletonApp.""" def __init__(self, parent=None): super(SkeletonApp, self).__init__(parent) self.image_label = QLabel() self.image_label.setBackgroundRole(QPalette.ColorRole.Base) self.image_label.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Ignored) self.image_label.setScaledContents(True) self.scroll_area = QScrollArea() self.scroll_area.setBackgroundRole(QPalette.ColorRole.Dark) self.scroll_area.setWidget(self.image_label) self.scroll_area.setVisible(False) self.setCentralWidget(self.scroll_area) self.create_actions() self.resize(QGuiApplication.primaryScreen().availableSize() * 3 / 5) def create_actions(self): """Create actions.""" pass def load_file(self): """Load file.""" pass