Giter VIP home page Giter VIP logo

Comments (6)

Walter-o avatar Walter-o commented on May 28, 2024

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.

Walter-o avatar Walter-o commented on May 28, 2024

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.
image

from pysimplegui.

PySimpleGUI avatar PySimpleGUI commented on May 28, 2024

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.

Walter-o avatar Walter-o commented on May 28, 2024

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.

PySimpleGUI avatar PySimpleGUI commented on May 28, 2024

thanks for the response!

Sure! That's why we're here. image 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.

jason990420 avatar jason990420 commented on May 28, 2024

Maybe you can refer issue #3787

from pysimplegui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.