Quickbend 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {quickbend-1.0.0 → quickbend-1.0.2}/PKG-INFO +1 -1
- {quickbend-1.0.0 → quickbend-1.0.2}/pyproject.toml +4 -1
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend/app.py +6 -3
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend/files.py +1 -1
- quickbend-1.0.2/src/Quickbend/placeholder.jpg +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/PKG-INFO +1 -1
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/SOURCES.txt +2 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/README.md +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/setup.cfg +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend/__init__.py +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend/databend.py +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/dependency_links.txt +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/entry_points.txt +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/requires.txt +0 -0
- {quickbend-1.0.0 → quickbend-1.0.2}/src/Quickbend.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "Quickbend"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.2"
|
|
8
8
|
description = "an app to create glitchart using pyside6"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -28,3 +28,6 @@ dependencies = [
|
|
|
28
28
|
|
|
29
29
|
[project.scripts]
|
|
30
30
|
Quickbend = "Quickbend.app:main"
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
Quickbend = ["*.jpg"]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
|
-
import
|
|
2
|
+
from importlib.resources import files
|
|
3
3
|
|
|
4
|
+
from PIL import Image
|
|
4
5
|
from PySide6.QtCore import Qt
|
|
5
6
|
from PySide6.QtGui import QPixmap
|
|
6
7
|
from PySide6.QtWidgets import (
|
|
@@ -66,7 +67,8 @@ class MainWindow(QMainWindow):
|
|
|
66
67
|
|
|
67
68
|
# image from file selection
|
|
68
69
|
self.image_preview = QLabel()
|
|
69
|
-
|
|
70
|
+
asset_path = files("Quickbend").joinpath("placeholder.jpg")
|
|
71
|
+
self.original_pixmap = QPixmap(str(asset_path))
|
|
70
72
|
layout.addWidget(self.image_preview)
|
|
71
73
|
|
|
72
74
|
save_button = QPushButton("export image")
|
|
@@ -125,7 +127,8 @@ class MainWindow(QMainWindow):
|
|
|
125
127
|
def export_handler(self):
|
|
126
128
|
(save_file_path) = save_file()
|
|
127
129
|
if save_file_path:
|
|
128
|
-
|
|
130
|
+
png_image = Image.open("/tmp/mash.bmp")
|
|
131
|
+
png_image.save(save_file_path)
|
|
129
132
|
|
|
130
133
|
|
|
131
134
|
def cleanup():
|
|
@@ -27,7 +27,7 @@ def browse_file():
|
|
|
27
27
|
|
|
28
28
|
def save_file():
|
|
29
29
|
save_path, _ = QFileDialog.getSaveFileName(
|
|
30
|
-
parent=None, caption="Save file:", filter="
|
|
30
|
+
parent=None, caption="Save file:", filter="PNG Images (*.png)"
|
|
31
31
|
)
|
|
32
32
|
if save_path:
|
|
33
33
|
return save_path
|
|
Binary file
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
README.md
|
|
2
2
|
pyproject.toml
|
|
3
|
+
setup.cfg
|
|
3
4
|
src/Quickbend/__init__.py
|
|
4
5
|
src/Quickbend/app.py
|
|
5
6
|
src/Quickbend/databend.py
|
|
6
7
|
src/Quickbend/files.py
|
|
8
|
+
src/Quickbend/placeholder.jpg
|
|
7
9
|
src/Quickbend.egg-info/PKG-INFO
|
|
8
10
|
src/Quickbend.egg-info/SOURCES.txt
|
|
9
11
|
src/Quickbend.egg-info/dependency_links.txt
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|