mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
removed pypi readme
This commit is contained in:
parent
2538fd9475
commit
7da9c73115
@ -1,16 +0,0 @@
|
|||||||
# CustomTkinter
|
|
||||||
|
|
||||||
![](https://raw.githubusercontent.com/TomSchimansky/CustomTkinter/master/documentation_images/customtkinter_mode_switch.gif)
|
|
||||||
|
|
||||||
With CustomTkinter you can create modern looking user
|
|
||||||
interfaces in python with tkinter. CustomTkinter is a
|
|
||||||
tkinter extension which provides extra ui-elements like
|
|
||||||
the CTkButton, which can be used like a normal tkinter.Button,
|
|
||||||
but can be customized with a border and round edges.
|
|
||||||
|
|
||||||
CustomTkinter also supports a light and dark theme,
|
|
||||||
which can either be set manually or get controlled by
|
|
||||||
the system appearance mode (only macOS).
|
|
||||||
|
|
||||||
For detailed information and documentation visit the github page:
|
|
||||||
https://github.com/TomSchimansky/CustomTkinter
|
|
@ -56,6 +56,7 @@ class CTkButton(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@ class CTkCheckBox(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ class CTkEntry(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ class CTkFrame(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ class CTkLabel(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ class CTkProgressBar(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ class CTkRadioButton(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ class CTkSlider(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ class CTkSwitch(tkinter.Frame):
|
|||||||
self.master.config = new_configure
|
self.master.config = new_configure
|
||||||
self.master.configure = new_configure
|
self.master.configure = new_configure
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
AppearanceModeTracker.add(self.change_appearance_mode, self)
|
||||||
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ class CTk(tkinter.Tk):
|
|||||||
self.fg_color = kwargs["background"]
|
self.fg_color = kwargs["background"]
|
||||||
del kwargs["background"]
|
del kwargs["background"]
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
||||||
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
|
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
|
||||||
super().title("CTk")
|
super().title("CTk")
|
||||||
|
@ -27,6 +27,7 @@ class CTkToplevel(tkinter.Toplevel):
|
|||||||
self.fg_color = kwargs["background"]
|
self.fg_color = kwargs["background"]
|
||||||
del kwargs["background"]
|
del kwargs["background"]
|
||||||
|
|
||||||
|
# add set_appearance_mode method to callback list of AppearanceModeTracker for appearance mode changes
|
||||||
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
AppearanceModeTracker.add(self.set_appearance_mode, self)
|
||||||
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
|
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
|
||||||
super().title("CTkToplevel")
|
super().title("CTkToplevel")
|
||||||
|
9
setup.py
9
setup.py
@ -11,13 +11,6 @@ import os
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
def read(filename):
|
|
||||||
try:
|
|
||||||
return open(os.path.join(os.path.dirname(__file__), filename)).read()
|
|
||||||
except Exception as err:
|
|
||||||
return ""
|
|
||||||
|
|
||||||
|
|
||||||
setup(name="customtkinter",
|
setup(name="customtkinter",
|
||||||
version="3.9",
|
version="3.9",
|
||||||
author="Tom Schimansky",
|
author="Tom Schimansky",
|
||||||
@ -25,7 +18,7 @@ setup(name="customtkinter",
|
|||||||
url="https://github.com/TomSchimansky/CustomTkinter",
|
url="https://github.com/TomSchimansky/CustomTkinter",
|
||||||
description="Create modern looking gui with tkinter and python",
|
description="Create modern looking gui with tkinter and python",
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
long_description=read('Readme_pypi.md'),
|
long_description="# CustomTkinter\n\nDetailed Information: https://github.com/TomSchimansky/CustomTkinter",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
packages=["customtkinter"],
|
packages=["customtkinter"],
|
||||||
classifiers=["Operating System :: OS Independent",
|
classifiers=["Operating System :: OS Independent",
|
||||||
|
Loading…
Reference in New Issue
Block a user