Keybinding Bug Fixed
This commit is contained in:
parent
993c1c5309
commit
d5a4dbf1d5
|
@ -1,6 +1,6 @@
|
||||||
import customtkinter as Ctk
|
import customtkinter as Ctk
|
||||||
import scripts.get_sys_info as system_code
|
import scripts.get_sys_info as system_code
|
||||||
from CTkColorPicker import AskColor
|
from Widgets.color_widget.ctk_color_picker import AskColor
|
||||||
|
|
||||||
class Settings(Ctk.CTkFrame):
|
class Settings(Ctk.CTkFrame):
|
||||||
def __init__(self,master, **kwargs):
|
def __init__(self,master, **kwargs):
|
||||||
|
@ -47,6 +47,16 @@ class Settings(Ctk.CTkFrame):
|
||||||
self.thread_count_switch.set(system_code.used_threads)
|
self.thread_count_switch.set(system_code.used_threads)
|
||||||
# Position of the Frame
|
# Position of the Frame
|
||||||
self.align()
|
self.align()
|
||||||
|
|
||||||
|
def enable_keybinding(self):
|
||||||
|
# this function has to be in all Functions but is only needed in
|
||||||
|
# some Classes
|
||||||
|
pass
|
||||||
|
|
||||||
|
def disable_keybinding(self):
|
||||||
|
# this function has to be in all Functions but is only needed in
|
||||||
|
# some Classes
|
||||||
|
pass
|
||||||
|
|
||||||
def change_skipped_frame(self,value):
|
def change_skipped_frame(self,value):
|
||||||
value = int(value)
|
value = int(value)
|
||||||
|
@ -59,12 +69,11 @@ class Settings(Ctk.CTkFrame):
|
||||||
self.thickness_slider_value.configure(text=value)
|
self.thickness_slider_value.configure(text=value)
|
||||||
|
|
||||||
def ask_color(self):
|
def ask_color(self):
|
||||||
pick_color = AskColor(initial_color=system_code.color) # open the color picker
|
self.pick_color = AskColor(master=self.master, initial_color=system_code.color)
|
||||||
if pick_color.get() is not None:
|
self.color = self.pick_color.get() # get the color string
|
||||||
system_code.color = pick_color.get() # get the color string
|
if self.color is not None:
|
||||||
self.color_btn.configure(fg_color=system_code.color)
|
self.color_btn.configure(fg_color=self.color)
|
||||||
|
# set the wanted image format
|
||||||
# set the wanted image format
|
|
||||||
def set_img_format(self, value):
|
def set_img_format(self, value):
|
||||||
system_code.img_format = value
|
system_code.img_format = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue