mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5717fc68e2
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [4.6.0] - 2022-09-17
|
||||||
|
### Added
|
||||||
|
- CTkProgressBar indeterminate mode, automatic progress loop with .start() and .stop()
|
||||||
|
|
||||||
## [4.5.0] - 2022-06-23
|
## [4.5.0] - 2022-06-23
|
||||||
### Added
|
### Added
|
||||||
- CTkScrollbar (vertical, horizontal)
|
- CTkScrollbar (vertical, horizontal)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
__version__ = "4.5.11"
|
__version__ = "4.6.3"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -6,7 +6,7 @@ from typing import Union
|
|||||||
|
|
||||||
class FontManager:
|
class FontManager:
|
||||||
|
|
||||||
linux_font_path = "~/.local/share/fonts/"
|
linux_font_path = "~/.fonts/"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def init_font_manager(cls):
|
def init_font_manager(cls):
|
||||||
|
@ -309,9 +309,6 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
self.variable.set(self.onvalue)
|
self.variable.set(self.onvalue)
|
||||||
self.variable_callback_blocked = False
|
self.variable_callback_blocked = False
|
||||||
|
|
||||||
if self.command is not None:
|
|
||||||
self.command()
|
|
||||||
|
|
||||||
def deselect(self, from_variable_callback=False):
|
def deselect(self, from_variable_callback=False):
|
||||||
self.check_state = False
|
self.check_state = False
|
||||||
self.draw()
|
self.draw()
|
||||||
@ -321,8 +318,5 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
self.variable.set(self.offvalue)
|
self.variable.set(self.offvalue)
|
||||||
self.variable_callback_blocked = False
|
self.variable_callback_blocked = False
|
||||||
|
|
||||||
if self.command is not None:
|
|
||||||
self.command()
|
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
return self.onvalue if self.check_state is True else self.offvalue
|
return self.onvalue if self.check_state is True else self.offvalue
|
||||||
|
@ -226,7 +226,8 @@ class CTkOptionMenu(CTkBaseClass):
|
|||||||
|
|
||||||
if self.variable is not None and self.variable != "":
|
if self.variable is not None and self.variable != "":
|
||||||
self.variable_callback_name = self.variable.trace_add("write", self.variable_callback)
|
self.variable_callback_name = self.variable.trace_add("write", self.variable_callback)
|
||||||
self.set(self.variable.get(), block_set_variable=True)
|
self.current_value = self.variable.get()
|
||||||
|
self.text_label.configure(text=self.current_value)
|
||||||
else:
|
else:
|
||||||
self.variable = None
|
self.variable = None
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
github_url = "https://github.com/TomSchimansky/CustomTkinter"
|
github_url = "https://github.com/TomSchimansky/CustomTkinter"
|
||||||
|
|
||||||
[tool.tbump.version]
|
[tool.tbump.version]
|
||||||
current = "4.5.11"
|
current = "4.6.3"
|
||||||
|
|
||||||
# Example of a semver regexp.
|
# Example of a semver regexp.
|
||||||
# Make sure this matches current_version before
|
# Make sure this matches current_version before
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = customtkinter
|
name = customtkinter
|
||||||
version = 4.5.11
|
version = 4.6.3
|
||||||
description = Create modern looking GUIs with Python
|
description = Create modern looking GUIs with Python
|
||||||
long_description = CustomTkinter UI-Library\n\n[](https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/Windows_dark.png)\n\nMore Information: https://github.com/TomSchimansky/CustomTkinter
|
long_description = CustomTkinter UI-Library\n\n[](https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/Windows_dark.png)\n\nMore Information: https://github.com/TomSchimansky/CustomTkinter
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
@ -78,8 +78,9 @@ switch_2 = customtkinter.CTkSwitch(master=app, variable=s_var, textvariable=s_va
|
|||||||
switch_2.pack(pady=20, padx=10)
|
switch_2.pack(pady=20, padx=10)
|
||||||
|
|
||||||
optionmenu_var = tkinter.StringVar(value="test")
|
optionmenu_var = tkinter.StringVar(value="test")
|
||||||
optionmenu_1 = customtkinter.CTkOptionMenu(master=app, variable=optionmenu_var, values=["Option 1", "Option 2", "Option 3"])
|
optionmenu_1 = customtkinter.CTkOptionMenu(master=app, variable=None, values=["Option 1", "Option 2", "Option 3"])
|
||||||
optionmenu_1.pack(pady=20, padx=10)
|
optionmenu_1.pack(pady=20, padx=10)
|
||||||
|
optionmenu_1.configure(variable=optionmenu_var)
|
||||||
combobox_1 = customtkinter.CTkComboBox(master=app, values=["Option 1", "Option 2", "Option 3"])
|
combobox_1 = customtkinter.CTkComboBox(master=app, values=["Option 1", "Option 2", "Option 3"])
|
||||||
combobox_1.pack(pady=20, padx=10)
|
combobox_1.pack(pady=20, padx=10)
|
||||||
combobox_1.configure(variable=optionmenu_var)
|
combobox_1.configure(variable=optionmenu_var)
|
||||||
|
Loading…
Reference in New Issue
Block a user