mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
new directory structure
This commit is contained in:
parent
7cdf3fd98d
commit
607f247a1a
@ -1,20 +1,20 @@
|
||||
__version__ = "3.9"
|
||||
|
||||
from .customtkinter_input_dialog import CTkInputDialog
|
||||
from .customtkinter_button import CTkButton
|
||||
from .customtkinter_slider import CTkSlider
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_progressbar import CTkProgressBar
|
||||
from .customtkinter_label import CTkLabel
|
||||
from .customtkinter_entry import CTkEntry
|
||||
from .customtkinter_checkbox import CTkCheckBox
|
||||
from .customtkinter_radiobutton import CTkRadioButton
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_switch import CTkSwitch
|
||||
from .customtkinter_toplevel import CTkToplevel
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .widgets.customtkinter_input_dialog import CTkInputDialog
|
||||
from .widgets.customtkinter_button import CTkButton
|
||||
from .widgets.customtkinter_slider import CTkSlider
|
||||
from .widgets.customtkinter_frame import CTkFrame
|
||||
from .widgets.customtkinter_progressbar import CTkProgressBar
|
||||
from .widgets.customtkinter_label import CTkLabel
|
||||
from .widgets.customtkinter_entry import CTkEntry
|
||||
from .widgets.customtkinter_checkbox import CTkCheckBox
|
||||
from .widgets.customtkinter_radiobutton import CTkRadioButton
|
||||
from .widgets.customtkinter_tk import CTk
|
||||
from .widgets.customtkinter_canvas import CTkCanvas
|
||||
from .widgets.customtkinter_switch import CTkSwitch
|
||||
from .widgets.customtkinter_toplevel import CTkToplevel
|
||||
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
import tkinter
|
||||
import tkinter.ttk as ttk
|
||||
|
||||
|
||||
class CTkWidgetBaseClass:
|
@ -1,7 +1,8 @@
|
||||
import sys
|
||||
import tkinter
|
||||
from typing import Union
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
|
||||
from .widgets.customtkinter_canvas import CTkCanvas
|
||||
|
||||
|
||||
class CTkDrawEngine:
|
||||
|
@ -1,5 +1,4 @@
|
||||
import sys
|
||||
import platform
|
||||
|
||||
|
||||
class CTkSettings:
|
||||
|
0
customtkinter/widgets/__init__.py
Normal file
0
customtkinter/widgets/__init__.py
Normal file
@ -4,11 +4,11 @@ import sys
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from customtkinter.appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkButton(tkinter.Frame):
|
@ -1,5 +1,5 @@
|
||||
import tkinter
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
|
||||
|
||||
class CTkCanvas(tkinter.Canvas):
|
@ -2,13 +2,13 @@ import tkinter
|
||||
import tkinter.ttk as ttk
|
||||
import sys
|
||||
|
||||
from customtkinter.customtkinter_tk import CTk
|
||||
from customtkinter.customtkinter_frame import CTkFrame
|
||||
from customtkinter.appearance_mode_tracker import AppearanceModeTracker
|
||||
from customtkinter.customtkinter_theme_manager import CTkThemeManager
|
||||
from customtkinter.customtkinter_canvas import CTkCanvas
|
||||
from customtkinter.customtkinter_settings import CTkSettings
|
||||
from customtkinter.customtkinter_draw_engine import CTkDrawEngine
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkCheckBox(tkinter.Frame):
|
@ -3,11 +3,11 @@ import tkinter.ttk as ttk
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkEntry(tkinter.Frame):
|
@ -2,11 +2,11 @@ import tkinter
|
||||
import tkinter.ttk as ttk
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkFrame(tkinter.Frame):
|
||||
@ -153,8 +153,8 @@ class CTkFrame(tkinter.Frame):
|
||||
from .customtkinter_progressbar import CTkProgressBar
|
||||
from .customtkinter_label import CTkLabel
|
||||
from .customtkinter_entry import CTkEntry
|
||||
from customtkinter.customtkinter_checkbox import CTkCheckBox
|
||||
from .customtkinter_button import CTkButton
|
||||
from customtkinter.widgets.customtkinter_checkbox import CTkCheckBox
|
||||
from customtkinter.widgets.customtkinter_button import CTkButton
|
||||
|
||||
for child in self.winfo_children():
|
||||
if isinstance(child, (CTkButton, CTkLabel, CTkSlider, CTkCheckBox, CTkEntry, CTkProgressBar, CTkFrame)):
|
@ -1,13 +1,13 @@
|
||||
import tkinter
|
||||
import time
|
||||
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_label import CTkLabel
|
||||
from .customtkinter_button import CTkButton
|
||||
from .customtkinter_entry import CTkEntry
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_toplevel import CTkToplevel
|
||||
from .customtkinter_button import CTkButton
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
|
||||
|
||||
class CTkInputDialog:
|
@ -3,11 +3,11 @@ import tkinter.ttk as ttk
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkLabel(tkinter.Frame):
|
@ -4,11 +4,11 @@ import tkinter.ttk as ttk
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
|
||||
|
||||
class CTkProgressBar(tkinter.Frame):
|
@ -2,13 +2,13 @@ import tkinter
|
||||
import tkinter.ttk as ttk
|
||||
import sys
|
||||
|
||||
from customtkinter.customtkinter_tk import CTk
|
||||
from customtkinter.customtkinter_frame import CTkFrame
|
||||
from customtkinter.appearance_mode_tracker import AppearanceModeTracker
|
||||
from customtkinter.customtkinter_theme_manager import CTkThemeManager
|
||||
from customtkinter.customtkinter_canvas import CTkCanvas
|
||||
from customtkinter.customtkinter_settings import CTkSettings
|
||||
from customtkinter.customtkinter_draw_engine import CTkDrawEngine
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkRadioButton(tkinter.Frame):
|
@ -4,11 +4,11 @@ import sys
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkSlider(tkinter.Frame):
|
@ -4,11 +4,11 @@ import sys
|
||||
|
||||
from .customtkinter_tk import CTk
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from .customtkinter_settings import CTkSettings
|
||||
from .customtkinter_draw_engine import CTkDrawEngine
|
||||
from .customtkinter_canvas import CTkCanvas
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
from ..customtkinter_settings import CTkSettings
|
||||
from ..customtkinter_draw_engine import CTkDrawEngine
|
||||
|
||||
|
||||
class CTkSwitch(tkinter.Frame):
|
@ -5,8 +5,8 @@ import os
|
||||
import platform
|
||||
import ctypes
|
||||
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
|
||||
|
||||
class CTk(tkinter.Tk):
|
||||
@ -102,8 +102,8 @@ class CTk(tkinter.Tk):
|
||||
from .customtkinter_label import CTkLabel
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_entry import CTkEntry
|
||||
from customtkinter.customtkinter_checkbox import CTkCheckBox
|
||||
from .customtkinter_button import CTkButton
|
||||
from customtkinter.widgets.customtkinter_checkbox import CTkCheckBox
|
||||
from customtkinter.widgets.customtkinter_button import CTkButton
|
||||
|
||||
for child in self.winfo_children():
|
||||
if isinstance(child, (CTkFrame, CTkButton, CTkLabel, CTkSlider, CTkCheckBox, CTkEntry, CTkProgressBar)):
|
@ -5,8 +5,8 @@ import os
|
||||
import platform
|
||||
import ctypes
|
||||
|
||||
from .appearance_mode_tracker import AppearanceModeTracker
|
||||
from .customtkinter_theme_manager import CTkThemeManager
|
||||
from ..appearance_mode_tracker import AppearanceModeTracker
|
||||
from ..customtkinter_theme_manager import CTkThemeManager
|
||||
|
||||
|
||||
class CTkToplevel(tkinter.Toplevel):
|
||||
@ -88,8 +88,8 @@ class CTkToplevel(tkinter.Toplevel):
|
||||
from .customtkinter_label import CTkLabel
|
||||
from .customtkinter_frame import CTkFrame
|
||||
from .customtkinter_entry import CTkEntry
|
||||
from customtkinter.customtkinter_checkbox import CTkCheckBox
|
||||
from .customtkinter_button import CTkButton
|
||||
from customtkinter.widgets.customtkinter_checkbox import CTkCheckBox
|
||||
from customtkinter.widgets.customtkinter_button import CTkButton
|
||||
|
||||
for child in self.winfo_children():
|
||||
if isinstance(child, (CTkFrame, CTkButton, CTkLabel, CTkSlider, CTkCheckBox, CTkEntry, CTkProgressBar)):
|
Loading…
Reference in New Issue
Block a user