Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
frank038 committed Feb 22, 2022
1 parent c559995 commit edb086f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qt5imageviewer/Qt5ImageViewer.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/python3
# V. 0.7.6
# V. 0.7.7

from PyQt5.QtCore import Qt, QMimeDatabase, QEvent, QSize
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter, QIcon, QTransform, QMovie
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QWidget, QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog
from PIL import Image, ImageQt
import subprocess

dialog_filters = 'Images (*.tga *.png *.jpeg *.jpg *.bmp *.gif *.svg *.dds *.eps *.ico *.tiff *.tif *.webp *.wmf *.jp2 *.pbm *.pgm *.ppm *.xbm *.xpm);;All files (*)'

Expand Down Expand Up @@ -317,13 +318,13 @@ def createMenus(self):
self.menuBar().addMenu(self.toolMenu)

def tool1(self):
os.system("./tool1.sh '{}'".format(self.ipath))
subprocess.Popen(["./tool1.sh", self.ipath])

def tool2(self):
os.system("./tool2.sh '{}'".format(self.ipath))
subprocess.Popen(["./tool2.sh", self.ipath])

def tool3(self):
os.system("./tool3.sh '{}'".format(self.ipath))
subprocess.Popen(["./tool3.sh", self.ipath])

def updateActions(self):
self.zoomInAct.setEnabled(True)
Expand Down

0 comments on commit edb086f

Please sign in to comment.