Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Jul 12, 2023
1 parent 1c767e6 commit 27cba7b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tktermwidget/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
"foreground": "#efefef",
}

# Check the style file
if not STYLE_PATH.exists():
STYLE_PATH.mkdir(parents=True)
with open(JSON_FILE, "w", encoding="utf-8") as f:
dump("{}", f)
if not (JSON_FILE).exists():
with open(JSON_FILE, "w", encoding="utf-8") as f:
dump("{}", f)


# Functions
def write_style(**styles) -> None:
Expand Down Expand Up @@ -271,6 +280,5 @@ def checkhexcolor(self, event: Event, name: str) -> None:
CUSTOM: dict[str] = load_style()

if __name__ == "__main__":
# An example or a test
configstyle = Config(True, basedon=POWERSHELL)
configstyle.mainloop()

0 comments on commit 27cba7b

Please sign in to comment.