GithubHelp home page GithubHelp logo

Comments (7)

robertobucher avatar robertobucher commented on July 20, 2024

You're right! I have to check the last commit: it increase the quality of the graphic but with this problem.
I'll check it ASAP

from pysimcoder.

zdebanos avatar zdebanos commented on July 20, 2024

Thank you for your answer. I may look into it as well when I have time. I just put it here to not forget about it.

from pysimcoder.

zdebanos avatar zdebanos commented on July 20, 2024

I was searching for solutions but I haven't found an easy way to do the svg flip in Qt. I consider using another Python library to do the svg transformations.

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

I've put a temporary solution to avoid the flipping of the images in blocks.
I think that instead of using the "/tmp" folder we can try to implement a ram disk in the future or setting the rendering of the block in the block class and modifying it only by some actions...

from pysimcoder.

zdebanos avatar zdebanos commented on July 20, 2024

Thank you very much Roberto. I was thinking about doing the same thing, however using something more pythonic. I've come across svgutils python package, which could prove useful. However, it only works with files and I am trying to get a simple pull request into its mainline that could work with the xml loaded as a string so there would be no need to save it as a tmpfile (btel/svg_utils#129).

Svgutils package has a scale method which can flip the image. It is also much more simple and doesn't require inkscape to run.

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

I haven't found how to use svg_utils (no examples...), but this is of course a better solution as using "inkscape"!

Let me know when you find how to use this package!

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

Please consider that we have to work usually with packages available in distros, and avoid when possible to have to many gits.

from pysimcoder.

Related Issues (18)

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.