24 lines
728 B
Python
24 lines
728 B
Python
from PyQt6.QtWidgets import QDialog
|
|
from _Window_finding_files_dialog import Ui_FindProgress
|
|
|
|
class FindProgress(QDialog, Ui_FindProgress):
|
|
def __init__(self,*args,**kwargs):
|
|
super(FindProgress,self).__init__(*args,**kwargs)
|
|
self.setupUi(self)
|
|
# self.set_progress_finding_files(0)
|
|
|
|
def is_shown(self):
|
|
return self.isVisible()
|
|
|
|
def open_find_files_dialog(self):
|
|
if not self.is_shown():
|
|
self.show()
|
|
|
|
def close_find_files_dialog(self):
|
|
if self.is_shown():
|
|
self.hide()
|
|
|
|
def set_progress_finding_files(self,n):
|
|
# print("%d%% done" % n)
|
|
self.progressBar_importing.setValue(float(n))
|
|
self.lcd_import_progress.display(n) |