-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresizable.py
More file actions
27 lines (20 loc) · 822 Bytes
/
resizable.py
File metadata and controls
27 lines (20 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from tksheet import Sheet
import tkinter as tk
app = tk.Tk()
app.grid_columnconfigure(0, weight = 1)
app.grid_rowconfigure(0, weight = 1)
main_frame = tk.Frame(app)
main_frame.grid(row = 0, column = 0, sticky = "nsew", padx = 10, pady = 10)
entry = tk.Entry(main_frame)
entry.grid(row = 0, column = 0, sticky = "ew", padx = 10, pady = 10)
cellValueFr = tk.Frame(main_frame)
cellValueFr.grid(row = 1, column = 0, sticky = "nw", padx = 10, pady = 10)
l = tk.Label(cellValueFr, text="fauihf fir huireh g")
l.grid(row = 0, column = 0, sticky = "nw")
main_frame.grid_columnconfigure(0, weight = 1)
main_frame.grid_rowconfigure(1, weight = 1)
sheet = Sheet(main_frame,
total_rows = 1200,
total_columns = 30)
sheet.grid(row = 2, column = 0, sticky = "nswe", padx = 10, pady = 10)
app.mainloop()