Attempt to fix macOS issue

This commit is contained in:
YourKalamity
2020-12-19 11:31:25 +00:00
parent 3aaad7a456
commit 958973fe26
9 changed files with 4291 additions and 79 deletions

37
tkmacosx/__init__.py Normal file
View File

@@ -0,0 +1,37 @@
# Copyright 2020 Saad Mairaj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
This module provides some modified widgets of Tkinter which works better on macos
and some more useful functions and classes as well. For example Button of tkmacosx which
looks and feels exactly like a native tkinter button can change its background
and foreground colors.
Read more about tkmacosx in detail on
https://github.com/Saadmairaj/tkmacosx/tree/master/tkmacosx.
"""
__version__ = '0.1.4'
from tkmacosx.basewidget import check_appearance, get_shade, delta
from tkmacosx.variables import ColorVar, DictVar, SaveVar, demo_colorvar, demo_savevar
from tkmacosx.widget import Button, CircleButton, SFrame, Marquee, demo_sframe, demo_button, demo_marquee
from tkmacosx.colors import Hex, OrderedHex, all_colors, named_colors, hue_color
from tkmacosx.colorscale import Colorscale, demo_colorscale, gradient
if __name__ == "__main__":
demo_sframe()
demo_button()
demo_colorvar()
demo_colorscale()