Skip to content

Commit

Permalink
Scrollable Interface with reasonable minimum window size.
Browse files Browse the repository at this point in the history
  • Loading branch information
gutow committed Sep 10, 2022
1 parent d08ad36 commit 4fada59
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def __init__(self):
app.iconbitmap(iconpath)

app.protocol("WM_DELETE_WINDOW", self.__on_close)
app.minsize(500,600)

# Scrollable Inner Frame
self.scroll = ScrollFrame(app)
Expand Down
11 changes: 11 additions & 0 deletions test/test_tk_scrollable_frame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import tkinter as tk
# This standard testing will not work because open-mcr is
# is not built as a python package.

# def test_init():
# root = tk.Tk()
# tstframe = ScrollFrame(root)
# assert (isinstance(tstframe,ScrollFrame))
# assert (isinstance(tstframe,tk.Frame))

# TODO more tests
17 changes: 17 additions & 0 deletions test/test_user_interface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TODO the following need tests
# pack
# create_and_pack_label
# PickerWidget
# FolderPickerWidget
# FilePickerWidget
# CheckboxWidget
# SelectWidget
# FormVariantSelection
# InputFolderPickerWidget
# OutputFolderPickerWidget
# AnswerKeyPickerWidget
# ArrangementMapPickerWidget
# ProgressTrackerWidget
# create_and_pack_progress

# MainWindow

0 comments on commit 4fada59

Please sign in to comment.