Aug-21-2018, 10:54 PM
My program is trying to save an image which takes a little while. I am trying to create a progress bar that will let the user know when the image is saved. The code below is what I have so far. My issue is that PyCharm keeps giving me this error: TypeError: QProgressBar(parent: QWidget = None): argument 1 has unexpected type 'Window'. Any ideas on how to fix this?
from PyQt5.QtWidgets import QWidget, QProgressBar, QPushButton, QApplication
from PyQt5.QtCore import QBasicTimer
import sys
class Window(Frame): #Frame is something inside of tkinter
def __init__(self, master = None):
Frame.__init__(self, master)
self.init_window()
self.progress = QProgressBar(self)
self.progress.setGeometry(200,80,250,20)
self.btn = QPushButton("Save", self)
self.btn.move(200,120)
self.btn.clicked.connect(self.CreatingFinalImage)
