Quickbend 1.0.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Quickbend
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: an app to create glitchart using pyside6
5
5
  Author-email: Daniel Crutti <dancrutti@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "Quickbend"
7
- version = "1.0.1"
7
+ version = "1.0.2"
8
8
  description = "an app to create glitchart using pyside6"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -1,7 +1,7 @@
1
1
  import os
2
- import shutil
3
2
  from importlib.resources import files
4
3
 
4
+ from PIL import Image
5
5
  from PySide6.QtCore import Qt
6
6
  from PySide6.QtGui import QPixmap
7
7
  from PySide6.QtWidgets import (
@@ -127,7 +127,8 @@ class MainWindow(QMainWindow):
127
127
  def export_handler(self):
128
128
  (save_file_path) = save_file()
129
129
  if save_file_path:
130
- shutil.move("/tmp/mash.bmp", save_file_path)
130
+ png_image = Image.open("/tmp/mash.bmp")
131
+ png_image.save(save_file_path)
131
132
 
132
133
 
133
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="Bitmap Files (*.bmp)"
30
+ parent=None, caption="Save file:", filter="PNG Images (*.png)"
31
31
  )
32
32
  if save_path:
33
33
  return save_path
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Quickbend
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: an app to create glitchart using pyside6
5
5
  Author-email: Daniel Crutti <dancrutti@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,5 +1,6 @@
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
File without changes
File without changes