def start(self) -> None:
rs = self.rolling_shutter = RollingShutter(self.files,
self.tk_speed_val.get(),
self.file_output)
lines_covered = rs.frame_count * self.tk_speed_val.get()
if lines_covered < rs.height:
m = ('The number of iterations ({}) is lower than the height'
' of the resulting image ({}px).\n\nMissing spots ({} lines)'
' will be filled with black.\n\n'
'Do you want to continue?')
message = m.format(lines_covered,
rs.height,
rs.height-lines_covered)
choice = askyesno('Proceed?', message)
if not choice:
return None
self.disable_buttons()
self.progress_bar.config(maximum=lines_covered)
self.progress_bar.state(['!disabled'])
t1 = Thread(target=rs.thread, args=(self,))
t1.setDaemon(True)
t1.start()
评论列表
文章目录