change sign
This commit is contained in:
parent
87bc21173f
commit
b61d4eb2e9
16
src/main.py
16
src/main.py
|
@ -141,13 +141,13 @@ class App(ctk.CTk):
|
|||
def switchSign(i: int, is_open: bool) -> str:
|
||||
match i:
|
||||
case 0: # Color Correction 颜色矫正
|
||||
return "cmdbgo" if is_open else "cmdbcs"
|
||||
return "cmdogb" if is_open else "cmdcsb"
|
||||
case 3: # Gamma
|
||||
return "cmdggo" if is_open else "cmdgcs"
|
||||
return "cmdogg" if is_open else "cmdcsg"
|
||||
case 4: # Saturation 饱和度
|
||||
return "cmdsgo" if is_open else "cmdscs"
|
||||
return "cmdogs" if is_open else "cmdcss"
|
||||
case 5: # White Balance
|
||||
return "cmdwgo" if is_open else "cmdwcs"
|
||||
return "cmdogw" if is_open else "cmdcsw"
|
||||
case _:
|
||||
return "error"
|
||||
|
||||
|
@ -495,13 +495,13 @@ class App(ctk.CTk):
|
|||
def switchSign (i:int) -> str:
|
||||
match i:
|
||||
case 0: # switch day
|
||||
return "cmdday"
|
||||
return "cmdvdd"
|
||||
case 1: # night
|
||||
return "cmdnig"
|
||||
return "cmdvdn"
|
||||
case 2: # start video
|
||||
return "cmdsta"
|
||||
return "cmdvds"
|
||||
case 3: # stop video
|
||||
return "cmdstp"
|
||||
return "cmdvdp"
|
||||
case _:
|
||||
return "error"
|
||||
|
||||
|
|
Loading…
Reference in New Issue