new directory structure

This commit is contained in:
Tom Schimansky 2022-04-09 21:45:57 +02:00
parent 7cdf3fd98d
commit 607f247a1a
18 changed files with 72 additions and 77 deletions

View File

@ -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

View File

@ -1,5 +0,0 @@
import tkinter
import tkinter.ttk as ttk
class CTkWidgetBaseClass:

View File

@ -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:

View File

@ -1,5 +1,4 @@
import sys
import platform
class CTkSettings:

View File

View 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):

View File

@ -1,5 +1,5 @@
import tkinter
from .customtkinter_settings import CTkSettings
from ..customtkinter_settings import CTkSettings
class CTkCanvas(tkinter.Canvas):

View File

@ -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):

View File

@ -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):

View File

@ -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)):

View File

@ -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:

View File

@ -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):

View File

@ -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):

View File

@ -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):

View 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_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):

View 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_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):

View File

@ -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)):

View File

@ -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)):