Skip to content

Commit

Permalink
[FIXED], explorer window name and script name
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMonnery committed Oct 14, 2019
1 parent fd07343 commit 39ffe6b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
venv/
target/
src/
.vscode
*~
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# comics2pdf
Python3 script and GUI that converts comic files (cbr, cbz) to pdf (on Linux)
Python3 script and GUI that converts comic files (cbr, cbz) to pdf (on Linux/Mac)

<p align="center">
<img src='screenshot_GUI.png'/>
Expand Down
File renamed without changes.
13 changes: 4 additions & 9 deletions comics2pdf_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ def initUI(self):
def openFileNameDialog(self):
options = QtWidgets.QFileDialog.Options()
fileName, _ = QtWidgets.QFileDialog.getOpenFileName(
self, "QFileDialog.getOpenFileName()", "", "CBR and CBZ files (*.cbr, *.cbz)", options=options)
self, "Find File", "", "CBR and CBZ files (*.cbr, *.cbz)", options=options)
if fileName:
print(fileName)
self.path = fileName

def openDirectoryNameDialog(self):
options = QtWidgets.QFileDialog.Options()
fileName = QtWidgets.QFileDialog.getExistingDirectory(self, options=options)
if fileName:
print(fileName)
self.path = fileName


Expand All @@ -68,12 +66,9 @@ def __init__(self):
self.done = 0

def on_button_clicked(self):
if self.file.isChecked():
explorer = Explorer(True)
else:
explorer = Explorer(False)

self.path = explorer.path
explorer = Explorer(self.file.isChecked())
if (explorer.path):
self.path = explorer.path
self.pathTo.setText(self.path)

def setupUi(self, Form):
Expand Down

0 comments on commit 39ffe6b

Please sign in to comment.