[modify] textbox color, nagative value
This commit is contained in:
parent
14c72fe080
commit
cc1463b166
@ -215,6 +215,7 @@ class App(customtkinter.CTk):
|
||||
|
||||
def write2textbox(self, text, wait=0, exitcode=0):
|
||||
if wait != 0:
|
||||
self.textbox.configure(text_color='blue')
|
||||
self.textbox.insert(index='end', text=text)
|
||||
self.textbox.update()
|
||||
self.textbox.see('end')
|
||||
@ -225,6 +226,7 @@ class App(customtkinter.CTk):
|
||||
self.textbox.see('end')
|
||||
raise Exception(f"Error code: {exitcode}")
|
||||
else:
|
||||
self.textbox.configure(text_color='blue')
|
||||
self.textbox.insert(index='end', text=text + '\n')
|
||||
self.textbox.update()
|
||||
self.textbox.see('end')
|
||||
|
@ -226,7 +226,7 @@ def find_row_start(data_file, df, conditions, av, rr, axis, vel, w2t, rpm):
|
||||
|
||||
threshold, step = get_threshold_step(data_file, axis)
|
||||
while row_start > step+1:
|
||||
speed = df.iloc[row_start, vel-1] * rpm
|
||||
speed = abs(df.iloc[row_start, vel-1] * rpm)
|
||||
if int(speed) < 1:
|
||||
row_start -= 50
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user