Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Raspi ADC/IMU blocks HOT 4
- MZ_APO CTU education kit support
- Suggestion to use single main function for all Linux RT targets and conditionalize /dev/nrt open attempt HOT 1
- pysimCoder on other platforms HOT 1
- Clone block command crashes PysimCoder editor HOT 1
- Anaconda compatibility HOT 1
- Issues using Tests HOT 2
- pysimCoder support for Silicon-Heaven infrastructure
- No module named 'supsisim'
- New branch "subsystems" HOT 2
- New file format in pysimCoder and subsystems HOT 2
- Conflicting and vague installation instructions complicate deployment HOT 3
- How to make the block like ±|u|^v HOT 11
- Moving from PyQt5 to PyQt6
- PdServ integration HOT 6
- scopy.py and RTPlot.py HOT 2
- Support for multiple NuttX targets
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 pysimcoder.