Skip to content

Commit

Permalink
🐞 Fix(build): Fixed build not including resource files.
Browse files Browse the repository at this point in the history
  • Loading branch information
undecV committed Nov 25, 2024
1 parent 978033c commit 473644c
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include awthemes/awthemes-10.4.0/*
recursive-include awthemes/awthemes-10.4.0 *
include awthemes/py.typed
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup, find_packages


__version__: str = "0.2.0"
__version__: str = "0.2.1"


setup(
Expand Down
52 changes: 52 additions & 0 deletions tests/sample_window.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!python -m tests.sample_window
"""Sample window for testing."""


import logging
import tkinter as tk
from tkinter import ttk

import awthemes
from awthemes import AwthemesStyle


logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger()
log.setLevel(logging.DEBUG)


log.debug("Path of Python-Awthemes: %r", awthemes.__file__)


root = tk.Tk()

# Get all avaliable themes.
style = AwthemesStyle(root)
print(style.theme_names())
style.theme_use("awbreezedark")


root.title("TTK Sample Window")
root.geometry("400x300")

main_frame = ttk.Frame(root, padding="10")
main_frame.pack(fill="both", expand=True)

label = ttk.Label(main_frame, text="Welcome to TTK Sample Window!")
label.pack(pady=10)

entry = ttk.Entry(main_frame, width=30)
entry.pack(pady=10)

button = ttk.Button(
main_frame, text="Click me.",
command=lambda: label.config(text=f"The input is: {entry.get()}")
)
button.pack(pady=10)

options = ["Option 1", "Option 2", "Option 3"]
combo = ttk.Combobox(main_frame, values=options)
combo.set("Make a choice...")
combo.pack(pady=10)

root.mainloop()

0 comments on commit 473644c

Please sign in to comment.