Comments (2)
I think there are a few possible solutions, I'll start with the easiest
If you have put the Sheet()
inside a frame using .grid()
then you can try the code:
self.my_frame_name.grid_columnconfigure(<integer column that the Sheet() was put in>, weight = 1)
self.my_frame_name.grid_rowconfigure(<integer row that the Sheet() was put in>, weight = 1)
and don't forget to use sticky =
when you use .grid()
Or if you used .pack()
then you can try messing about with fill
and expand
as shown in this question:
https://stackoverflow.com/questions/28089942/difference-between-fill-and-expand-options-for-tkinter-pack-method
Try the above methods on other parent container frames as well and if you have set a specific width and height for the Sheet()
you could try not doing that combined with the code above
I have also written some example code based on your image that might help, it seems to do what you want and might highlight what you need to change, but I'm not 100% sure it's applicable, give it a try:
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)
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 = 1, column = 0, sticky = "nswe", padx = 10, pady = 10)
app.mainloop()
If these don't work or are not applicable let me know and I could get into .bind("<Configure>", ...
stuff or alternatively if you pasted just the UI code I might be able to fix it
from tksheet.
@ragardner your are savior, that worked !
from tksheet.
Related Issues (20)
- Update cells data using specific conditions on user input. HOT 27
- SyntaxWarning HOT 3
- Currently selected cell rows in sheet vs in data HOT 2
- on Rpi5, OS debian bookworm, tksheet's sheet defined col-w & row-h of 10x16 cells size has slow/lagging mouse's cursor movement HOT 12
- How to fix the maximum size of characters in tksheet ceels HOT 6
- The tabel font does not change. HOT 1
- How to Check if a Check Box is checked in tksheet 7 HOT 1
- How to accept user input even if "enter" is not pressed HOT 4
- Looking to customize scrollbar and scrollbar frame bg HOT 2
- Don't work keyboard UP arrow when navigating through the table of tksheet HOT 1
- Multiple issues with Toggle Select Mode
- Partial Horizontal Scrolling HOT 2
- Rows sorting? HOT 2
- Cell Selection Persistence HOT 2
- Keypad enter button ignored HOT 2
- Quotes multiplies when i copy text from cell with ctrl+c or popup menu. HOT 2
- Editing out of bounds when changing sheets HOT 2
- Is there a way to set copy and paste bindings on cyrillic layout? HOT 7
- Issues with auto_resize_row_index HOT 1
- Column header data not made when creating new columns HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tksheet.