Comments (6)
I just verified that 200.000 text elements work without a problem (albeit a bit slow to load)
That makes it even more weird that it crashes before even 5000 empty image elements.
Also this means i can pivot to using ✅ and ❎ as emoji's in text in the meantime.
from pysimplegui.
Alright, i worked around the bug but i'm still leaving the issue open since i'm curious if there is a fix, i might run into it in the future.
from pysimplegui.
This is a tkinter-based error, not a PySimpleGUI one. It would be helpful to write a small example using tkinter and report it to that team. I certainly am not going to know about any values deep in tkinter.
Rather than brute force creating so much at one time in RAM, can you think of a bit more sophisticated design that can get around this (perhaps reasonable) limitation? You can't show 200,000 images all at the same time, so some kind of buffering, paging, etc, scheme should be possible.
from pysimplegui.
Hey!
I think you are right about it being a good idea to add pagination.
Maybe baking the stuff in an image with pillow is an option too, but i also have tooltips on every item.
In the future i could make a fake scrollbar on 1 axis that loads and deloads stuff.
Also i tested out if tkinter breaks at high image counts and the breaking point is really similar, it's a tiny bit higher on tkinter alone.
And PySimpleGUI with 200.000 text objects still breaks if it's mixed in with columns and similar.
So it looks like it's just a general memory limit issue in tkinter where the image objects take a ton of space compared to other types.
I'm going to experiment further and might report my issues to tkinter/wx/Qt etc if i get around to it.
But anyways thanks for the response!
from pysimplegui.
thanks for the response!
Sure! That's why we're here. Thank you for the "thanks"!
Jason's posted several examples of various ways of implementing loading of assets as needed rather than creating them in advance in response to user's issues over the years. You should be able to locate some by searching the issue database (assuming you can craft a search that returns a reasonable number of hits).
from pysimplegui.
Maybe you can refer issue #3787
from pysimplegui.
Related Issues (20)
- [Question] Demo_Matplotlib_Ping_Graph_Large.py does not run/compile on Pi4 HOT 26
- Flask click SystemError when used with pySimpleGUI output redirect HOT 1
- [Question] How to trap an event HOT 2
- [Enhancement] CI friendly handling for the first time installation dialog HOT 3
- [Question] How to update class parameter within inherited class HOT 4
- [Question] How To Re-Enter Data For A Specific Field - AND 'CR to act like TAB HOT 1
- [ Bug] sg.ColorChooserButton Unless Additional Tkinter Import HOT 1
- [Question] Import error HOT 3
- [Question] Change focus highlight when tabbing to button HOT 8
- [ Enhancement/Bug/Question] NOTE - you can also call sg.main() or sg.main_open_github_issue() to post an issue HOT 1
- [ Question] Compiling Errors since License validation HOT 2
- [ Bug] Broken Doc Link HOT 2
- [Question] NOTE - Table get doesn't work HOT 6
- [ Enhancement] allow arrowheads for lines in tkinter graphs HOT 8
- [Question] Question of shortcut HOT 17
- [Question] How to Use PySimpleGui Programs on Other PCs HOT 1
- [ Question] How to detect when we manually enter a value in combo box in Pysimple GUI HOT 1
- [Bug] Table colored rows flashes when updating in 5.0, while they didn't in 4.x HOT 10
- [Question] No right_click_menu in Combo HOT 3
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 pysimplegui.