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