Skip to content

Commit

Permalink
Merge pull request #22 from e-lie/tk-editor
Browse files Browse the repository at this point in the history
Fix Settings Error #20, add tkbootstrap to requires.txt, add text color theme editor to preferences
  • Loading branch information
e-lie authored Nov 8, 2024
2 parents 18de853 + fe8c946 commit 66f86b4
Show file tree
Hide file tree
Showing 4 changed files with 317 additions and 49 deletions.
6 changes: 5 additions & 1 deletion FoxDotEditor/FoxDotEditor/Console.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ def __init__(self, parent):
self.canvas_height = 0
# Draw logo
# self.draw_logo()
self.hello_msg = "Welcome to Renardo! Press Ctrl/Cmd + H for help."
self.hello_lines = "-" * len(self.hello_msg)
self.hello_txt = f"{self.hello_msg}\n{self.hello_lines}\n"
# Create text
self.text = self.canvas.create_text((self.padx, self.pady),
anchor=NW,
fill=colour_map['console_text'],
font=self.app.console_font)
font=self.app.console_font,
text=self.hello_txt)
self.text_cursor = None
self.y_scroll.config(command=self.scroll_text)
# Allow for resizing
Expand Down
17 changes: 0 additions & 17 deletions FoxDotEditor/FoxDotEditor/Editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,25 +280,8 @@ def check_versions():
# --- Create console
self.console = console(self)
sys.stdout = self.console

# Say Hello to the user
def hello():
if SYSTEM == MAC_OS:
ctrl = "Cmd"
else:
ctrl = "Ctrl"
# with open(FOXDOT_HELLO) as f:
# hello = f.read()
# print()
# print(hello)
# print()
hello = "Welcome to Renardo! Press {}+{} for help.".format(ctrl, self.help_key)
print(hello)
print("-" * len(hello))
# Ask after widget loaded
self.linenumbers.redraw() # ToDo: move to generic redraw functions
self.root.after(50, hello)

# Check temporary file
def recover_work():
with open(FOXDOT_TEMP_FILE) as f:
Expand Down
Loading

0 comments on commit 66f86b4

Please sign in to comment.