Skip to content

Commit

Permalink
Merge pull request #5 from rohitagr0310/basic-window
Browse files Browse the repository at this point in the history
Basic window has been created and text editor iss refined
  • Loading branch information
rohitagr0310 authored Oct 4, 2023
2 parents 41f208f + ccc89dc commit edc4824
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 139 deletions.
Binary file added __pycache__/menu_bar.cpython-311.pyc
Binary file not shown.
107 changes: 0 additions & 107 deletions app.cpp

This file was deleted.

26 changes: 26 additions & 0 deletions base_window.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import tkinter as tk
from menu_bar import create_menu_bar
from tkinter import scrolledtext

def create_base_window():
root = tk.Tk()
root.title("My Python IDE")

# Create a menu bar using the imported function
create_menu_bar(root)

# Create a text widget (for code editing)
text_widget = scrolledtext.ScrolledText(
root,
wrap=tk.WORD,
font=("Consolas", 12), # Use a monospaced font like Consolas
insertbackground="Black", # Color of the cursor
selectbackground="lightblue" # Color of selected text
)
text_widget.pack(expand=tk.YES, fill=tk.BOTH)

return root

if __name__ == "__main__":
app = create_base_window()
app.mainloop()
32 changes: 0 additions & 32 deletions tasks.json

This file was deleted.

0 comments on commit edc4824

Please sign in to comment.