Example #1
0
def show_pictures(images_paths, title):
    win = tk.Toplevel()
    win.wm_title("Pictures")
    win.configure(bg=BACKGROUND_COLOR)
    win.attributes("-fullscreen", True)
    frame = tk.Frame(win, bg=BACKGROUND_COLOR)
    new_title(frame, title)
    frame.pack()

    # Menu bar
    menu_bar = tk.Menu(win)
    menu_bar.add_command(label="Close", command=win.destroy)
    win.configure(menu=menu_bar)

    # 80% of the screen's height
    scale = 0.8
    scrollable_frame = ScrollableFrame(win, win.winfo_screenheight()*scale, IMAGE_MAX_SIZE, 3, 30, 30, BACKGROUND_COLOR)
    scrollable_frame.fill_data(images_paths, command_bind_on_click=show_full_picture)