Hello! I'm new to Qt designer and programming. I tried to create a file (e.g. "sample") using the below function and want to autosave the file every x minutes using 'timer'. But each time I am getting a prompt to select a new file. My question: How can I reuse the same file i.e. "sample" without getting prompts and save data in it.
def sampleSave(self):
QtWidgets.
QFileDialog.
getSaveFileName(caption
="Choose file to save configuration")
timer = threading.Timer(300, self.sampleSave)
timer.start()
def sampleSave(self):
QtWidgets.QFileDialog.getSaveFileName(caption="Choose file to save configuration")
timer = threading.Timer(300, self.sampleSave)
timer.start()
To copy to clipboard, switch view to plain text mode
Bookmarks