-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bunch of fix and improvements (#32)
* ... * Update README.md * Update README_CH.md * Update README_CH.md * Update README.md * Small loop * oops * Eat my word, taste bad. * upload the screenshot * Eat my word..... Taste nice! * cut off some tr sp * sorry * Ate my word * Delete littlewhitecloudversion.py * Update tkterm.py * Update * More easier to determine the platform with out complex if else * not default * autohide will no longer default * update document * rename hi to historyindex * com img * wrong path s * s w p * comp image * fix #37 & #38 and a small tweak I am gotta leave now, here you go @Moosems * Update example_ch.py * black, isort and small documents * black, isort and doc * Pep8? * Forgot this * bump version * Update README.md * fix #41 * fix #40 * Update README_CH.md * Update tkterm.py * fix typo * a better way to improve it * del usele * small update * also small updates * style...? * also import styles * emm * rm CREATE_N?EW_CONSOLE * Update tkterm.py * make you happy :) * fix a lot * black isort ruff merge variable name * type ann and isort --------- Co-authored-by: Moosems <95927277+Moosems@users.noreply.github.com>
- Loading branch information
1 parent
4427c98
commit bde10a3
Showing
12 changed files
with
224 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
info.txt | ||
.dist/ | ||
dist/ | ||
tkterm.egg-info/ | ||
tkterm/__pycache__/ | ||
tktermwidget.egg-info/ | ||
tktermwidget/__pycache__/ | ||
.DS_Store | ||
.ruff_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"""An example for tktermwidget""" | ||
from tkinter import Tk | ||
|
||
from tktermwidget import Terminal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
"""Tktermwidget package""" | ||
from .style import Command, Defaulf, Powershell # noqa: F401 | ||
from .tkterm import Terminal # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Styles for terminal""" | ||
|
||
Default: dict = { # Style for normal tkterminalwidget | ||
"background": "#2B2B2B", | ||
"insertbackground": "#DCDCDC", | ||
"selectbackground": "#b4b3b3", | ||
"selectforeground": "#e6e6e6", | ||
"foreground": "#cccccc", | ||
} | ||
|
||
Powershell: dict = { # Style for powershell | ||
"background": "#012456", | ||
"insertbackground": "#eeedf0", | ||
"selectbackground": "#fedba9", | ||
"selectforeground": "#11120f", | ||
"foreground": "#cccccc", | ||
} | ||
|
||
Command: dict = { # Style for normal "cmd.exe" | ||
"background": "#000000", | ||
"insertbackground": "#f2f2f2", | ||
"selectbackground": "#f3f3f3", | ||
"selectforeground": "#000000", | ||
"foreground": "#f2f2f2", | ||
} | ||
|
||
# TODO: add a user custom style function later... |
Oops, something went wrong.