Tkinter.Label(frame0, text='Search : ', bg='skyblue').pack(side='left', expand='yes', fill='x') Mainframe.create_image(0, 0, anchor="nw", image=background) Mainframe.pack(side='top', expand='yes', fill='both')
![tkinter textbar with scrollbar tkinter textbar with scrollbar](https://i.stack.imgur.com/dP91u.jpg)
![tkinter textbar with scrollbar tkinter textbar with scrollbar](https://www.tutorialsart.com/wp-content/uploads/2021/04/12-tkinter-button.png)
Self.strap_id(row=0, column=1, sticky='nsew') Self.strap_scroll = tk.Scrollbar(self.strap_calc_frame, command=self.strap_calc_txtbox.yview) Self.strap_calc_id(row=0, column=0, sticky='nsew') Self.strap_calc_txtbox = tk.Text(self.strap_calc_frame, height = 25, width = 70, bg= "grey90", font= self.helv_norm, wrap=tk.WORD) Self.strap_bar_size_id(row=4, column=1, padx= 2, sticky=tk.W) Self.strap_bar_size_id(row=4,column=0, pady=2) Self.strap_bar_size_label = tk.Label(self.strap_inputs_frame, text="Flexure\nBar Size (#) : ", font=self.helv) Self.strap_vbar_size_id(row=2, column=1, padx= 2, sticky=tk.W) Self.strap_vbar_size_nfig(font=self.helv) Self.strap_vbar_size_menu = tk.OptionMenu(self.strap_inputs_frame, self.strap_vbar_size, '3', '4', '5', command=self.reset_status) Self.strap_vbar_size_id(row=2,column=0, pady=2) Self.strap_vbar_size_label = tk.Label(self.strap_inputs_frame, text="Shear\nBar Size (#) : ", font=self.helv) Tk.Label(self.strap_inputs_frame, text="in", font=self.helv).grid(row=1, column=2) Tk.Entry(self.strap_inputs_frame, textvariable=self.hs, width=10, validate="key", validatecommand=self.reset_status).grid(row=1, column=1) Tk.Label(self.strap_inputs_frame, text="H = ", font=self.helv).grid(row=1, column=0, sticky = tk.E) Tk.Label(self.strap_inputs_frame, text="in", font=self.helv).grid(row=0, column=2) Tk.Entry(self.strap_inputs_frame, textvariable=self.bs, width=10, validate="key", validatecommand=self.reset_status).grid(row=0, column=1) Tk.Label(self.strap_inputs_frame, text="B = ", font=self.helv).grid(row=0, column=0, sticky = tk.E) Self.strap_calc_frame.pack(side=tk.RIGHT ,anchor='ne', fill=tk.BOTH, expand=1) Self.strap_calc_frame = tk.Frame(self.strap_design_frame) Self.strap_inputs_frame.pack(side=tk.LEFT, anchor='nw') Self.strap_inputs_frame = tk.Frame(self.strap_design_frame) Self.rowconfigure(0, weight=1, minsize=0) Self.vscroll = TK.Scrollbar(master, command=self._canvas.yview) Self.hscroll = TK.Scrollbar(master, command=self._canvas.xview, Self._canvas = TK.Canvas(master, width=width, height=height,īg=self.bg, relief=TK.SUNKEN, borderwidth=2) Self.canvwidth, self.canvheight = canvwidth, canvheight TK.Frame._init_(self, master, width=width, height=height) The way this is implemented is worth taking a look at.Def _init_(self, master, width=500, height=350, Txt = scrolledtext.ScrolledText(main_window, undo=True) Import tkinter.scrolledtext as scrolledtext The tkinter.scrolledtext module contains a class called ScrolledText which is a compound widget (Text & Scrollbar).
![tkinter textbar with scrollbar tkinter textbar with scrollbar](https://i.stack.imgur.com/9ggSo.png)
![tkinter textbar with scrollbar tkinter textbar with scrollbar](https://cdn.educba.com/academy/wp-content/uploads/2020/02/Tkinter-Scrollbar-768x428.png)
Something that will be helpful for you to learn right now is that different Tkinter widgets can use different geometry managers within the same program as long as they do not share the same parent. The part that will address your Scrollbar being small is sticky='nsew', # create a Scrollbar and associate it with txt Here's a working example that makes use of ttk: import tkinter Set the Text widget's yscrollcommand option to the Scrollbar's set method. scrollb = tkinter.Scrollbar(., command=txt.yview) Set the Scrollbar widget's command option to the Text's yview method. To position the Scrollbar next to the Text widget. You can use the grid manager's row and column options Pack and grid are usually recommended over place. Tkinter has three geometry managers: pack, grid, and place.