Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Jul 12, 2024
1 parent aea4860 commit dd9345d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DEPRECATED_discopop_wizard/screens/widgets/ScrollableText.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
# directory for details.

import tkinter as tk
from tkinter import ttk
from tkinter import Tk, ttk
from typing import Union


class ScrollableTextWidget(object):
frame: tk.Frame
text_container: tk.Text

def __init__(self, parent_frame):
def __init__(self, parent_frame: Union[tk.Frame, Tk]):
self.frame = ttk.Frame(parent_frame) # type: ignore
self.frame.pack(fill=tk.BOTH, expand=True)
self.frame.rowconfigure(0, weight=1)
Expand Down

0 comments on commit dd9345d

Please sign in to comment.