Skip to content

Commit

Permalink
v1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Nov 16, 2024
1 parent 6fcd1f2 commit c392b49
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 92 deletions.
2 changes: 1 addition & 1 deletion docs/TkEasyGUI/dialogs-py.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def input_number(
message: str,
title: Union[str,None] = None,
default: str = ""
) -> float:
) -> Union[float, None]:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/dialogs.py#L910)
Expand Down
26 changes: 15 additions & 11 deletions docs/TkEasyGUI/utils-py.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Convert RGB color(16bit tuple) to HTML color name.
def convert_color_html(color_name: str) -> str:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L240)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L247)

## convert_color_rgb16

Expand All @@ -65,7 +65,7 @@ Convert color to RGB, return (r, g, b) tuple. range=0-65535
def convert_color_rgb16(color_name: str) -> tuple[int, int, int]:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L235)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L242)

## copy_to_clipboard

Expand All @@ -85,7 +85,7 @@ Generate a unique id for a value element.
def generate_element_id() -> int:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L282)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L289)

## generate_element_style_key

Expand All @@ -95,7 +95,7 @@ Get a unique id for an element.
def generate_element_style_key(element_type: str) -> int:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L252)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L259)

## get_clipboard

Expand All @@ -115,7 +115,7 @@ Get current theme
def get_current_theme() -> str:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L213)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L220)

## get_platform

Expand Down Expand Up @@ -148,7 +148,7 @@ print(get_themes())
def get_tnemes() -> list[str]:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L198)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L205)

## get_ttk_style

Expand Down Expand Up @@ -218,7 +218,7 @@ Register element key.
def register_element_key(key: str) -> bool:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L267)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L274)

## remove_element_key

Expand All @@ -228,7 +228,7 @@ Remove element key.
def remove_element_key(key: str) -> bool:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L274)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L281)

## save_json_file

Expand Down Expand Up @@ -291,11 +291,15 @@ print(get_themes())
def set_default_theme() -> None:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L217)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L224)

## set_theme

Change look and feel --- [TODO] Currently, the implementation is incomplete.
Change look and feel

- macOS --- ('aqua', 'clam', 'alt', 'default', 'classic')
- Windows --- ('winnative', 'clam', 'alt', 'default', 'classic', 'vista', 'xpnative')
- Linux --- ('clam', 'alt', 'default', 'classic')

```py
def set_theme(name: str) -> None:
Expand All @@ -321,5 +325,5 @@ Set theme (alias of set_theme)
def theme(name: str) -> None:
```

- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L209)
- [source](https://github.com/kujirahand/tkeasygui-python/blob/main/TkEasyGUI/utils.py#L216)

Loading

0 comments on commit c392b49

Please sign in to comment.