From a695a4c151765e983126a6037c589aa91452e554 Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Thu, 2 Nov 2017 10:28:43 +0100 Subject: Code cleanup --- kindlecomicconverter/KCC_gui.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kindlecomicconverter/KCC_gui.py') diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index a98585a..651026a 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -156,8 +156,8 @@ class VersionThread(QtCore.QThread): '(' 'Changelog)', 'warning', False) - def setAnswer(self, dialogAnswer): - self.answer = dialogAnswer + def setAnswer(self, dialoganswer): + self.answer = dialoganswer def getNewVersion(self): while self.answer is None: @@ -180,8 +180,8 @@ class VersionThread(QtCore.QThread): MW.hideProgressBar.emit() MW.modeConvert.emit(1) - def getNewVersionTick(self, size, blockSize, totalSize): - progress = int((size / (totalSize // blockSize)) * 100) + def getNewVersionTick(self, size, blocksize, totalsize): + progress = int((size / (totalsize // blocksize)) * 100) if size == 0: MW.progressBarTick.emit('100') if progress > self.barProgress: @@ -667,10 +667,10 @@ class KCCGUI(KCC_ui.Ui_mainWindow): self.addMessage('' 'List of supported Non-Kindle devices.', 'info') - def changeFormat(self, outputFormat=None): + def changeFormat(self, outputformat=None): profile = GUI.profiles[str(GUI.deviceBox.currentText())] - if outputFormat is not None: - GUI.formatBox.setCurrentIndex(outputFormat) + if outputformat is not None: + GUI.formatBox.setCurrentIndex(outputformat) else: GUI.formatBox.setCurrentIndex(profile['DefaultFormat']) if not GUI.webtoonBox.isChecked(): @@ -881,10 +881,10 @@ class KCCGUI(KCC_ui.Ui_mainWindow): else: self.addMessage('Download it and place executable in /usr/local/bin directory.', 'error') - def __init__(self, KCCAplication, KCCWindow): + def __init__(self, kccapp, kccwindow): global APP, MW, GUI - APP = KCCAplication - MW = KCCWindow + APP = kccapp + MW = kccwindow GUI = self self.setupUi(MW) self.editor = KCCGUI_MetaEditor() -- cgit 1.4.1