Skip to content

Commit c3bbee7

Browse files
committed
Test complete
1 parent ddc1e3d commit c3bbee7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tkintermd/frame.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from tkinter import messagebox as mbox
77
from tkinter.constants import *
88
from tkinterweb import HtmlFrame
9+
from tkinterweb.utilities import ScrolledTextBox
910

1011
from markdown import Markdown
1112
from pygments import lex
@@ -139,11 +140,11 @@ def __init__(self, master, **kwargs):
139140

140141
# Creating the widgets
141142
self.editor_pw = tk.PanedWindow(self.master, orient="horizontal")
142-
self.editor_frame = tk.Frame(self.editor_pw)
143-
self.text_area = tk.Text(self.editor_frame, state="normal", wrap="none", pady=2, padx=3, undo=True, width=100, height=25, yscrollcommand=self.on_mousewheel)
144-
self.text_area.pack(side="left", fill="both", expand=1)
145-
self.scrollbar = tk.Scrollbar(self.editor_frame, command=self.on_scrollbar)
146-
self.scrollbar.pack(side="left", fill="y")
143+
self.editor_frame = ScrolledTextBox(self.editor_pw)
144+
self.text_area = self.editor_frame.tbox#tk.Text(self.editor_frame, state="normal", wrap="none", pady=2, padx=3, undo=True, width=100, height=25, yscrollcommand=self.on_mousewheel)
145+
## self.text_area.pack(side="left", fill="both", expand=1)
146+
## self.scrollbar = tk.Scrollbar(self.editor_frame, command=self.on_scrollbar)
147+
## self.scrollbar.pack(side="left", fill="y")
147148
self.preview_area = HtmlFrame(self.editor_pw)
148149
self.editor_pw.add(self.editor_frame)
149150
self.editor_pw.add(self.preview_area)

0 commit comments

Comments
 (0)