removed pypi readme

This commit is contained in:
Tom Schimansky 2022-04-06 23:09:54 +02:00
parent 2538fd9475
commit 7da9c73115
13 changed files with 12 additions and 24 deletions

View File

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

View File

@ -56,6 +56,7 @@ class CTkButton(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -58,6 +58,7 @@ class CTkCheckBox(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -50,6 +50,7 @@ class CTkEntry(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -41,6 +41,7 @@ class CTkFrame(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -48,6 +48,7 @@ class CTkLabel(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -47,6 +47,7 @@ class CTkProgressBar(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -55,6 +55,7 @@ class CTkRadioButton(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -55,6 +55,7 @@ class CTkSlider(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -56,6 +56,7 @@ class CTkSwitch(tkinter.Frame):
self.master.config = 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)
self.appearance_mode = AppearanceModeTracker.get_mode() # 0: "Light" 1: "Dark"

View File

@ -27,6 +27,7 @@ class CTk(tkinter.Tk):
self.fg_color = 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)
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
super().title("CTk")

View File

@ -27,6 +27,7 @@ class CTkToplevel(tkinter.Toplevel):
self.fg_color = 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)
super().configure(bg=CTkThemeManager.single_color(self.fg_color, self.appearance_mode))
super().title("CTkToplevel")

View File

@ -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",
version="3.9",
author="Tom Schimansky",
@ -25,7 +18,7 @@ setup(name="customtkinter",
url="https://github.com/TomSchimansky/CustomTkinter",
description="Create modern looking gui with tkinter and python",
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,
packages=["customtkinter"],
classifiers=["Operating System :: OS Independent",