A paperjs-equivalent for python (specifically, Pythonista for iOS)? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I've taken to creative coding on my iPad and iPhone using Codea, Procoding, and Pythonista. I really love the paper.js Javascript library, and I'm wondering how I might have the functionality that I find in paper.js when writing in Python.
Specifically, I'd love to have the vector math and path manipulation that paper.js affords. Things like finding the intersection of two paths or binding events to paths (on click, mouse move, etc).
There's an ImagePath module provided by Pythonista that does some path stuff but it's not as robust as paper.js (it seems).
Any ideas?

The ui module actually includes a lot of vector drawing functions, inside a ui.ImageContext. ui.ImageContext is a thin wrapper around part of one of the Objective-C APIs (maybe CALayer?) The drawing methods are designed to operate inside the draw method of a custom view class, but you can present these things in other contexts using a UIImageContext, from which you can get a static image.

Related

Must everyone who uses my program see the ugly code next to it? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I started working on some beginner projects and games to test my abilities.
I found that all I was doing is simply writing a code and seeing the ugly output next to it (in the interactive window). The code works, but that's not how I want a normal user to interfere with it.
I'm looking for a way to display my python program properly to a user. Is there some sort of interface manipulating that I should learn in order to accomplish that? thanks.
It sounds like you're seeking to build a GUI for your programs.
In several of my early projects, I used the built-in Tkinter module to accomplish what you're suggesting. It may not give you the most modern-looking GUI, but it's nice to use due to it being included with Python by default and the abundance of documentation and tutorials.
There are tons of great videos on YT that walk you through step-by-step on everything from pop-up, dialog-box messages, to full on user-input, menu-laden GUIs. Just search "tkinter tutorials".

Printing Graphs in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I will soon start working on a certain computer science assignment, and one of the things I will have to do is use data from a database (I will use SQLite, and its plugin in Mozilla Firefox), and one of the things which I need my program to output is a normal distribution graph of the grades. It would be nice if you could tell me whether I can create a GUI program that can do that (for now I am using Jetbrains Pycharm Edu) Can someone please tell me how am I supposed to do that, consider me not a total starter in python but not a professional either, thank you in advance!
I had to create a GUI for my python app like you. And there are mainly two choices. Either you create a native app using some qt for ex. Or you create a web app. I chose the latter for simplicity and portability.
There are lots of framework out there like pyramid. Then using plotly (or bokeh, etc.) you will be able to convert (HTML+JS) some matplotlib directly into interactive plots.

Library for SVG path calculations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a library with Python bindings that can do calculations on SVG paths, such as calculating the length, and finding the coordinates of a point on the paths (ie, say the coordinates of the point 24.4% the length of the path).
Is there something around already?
A C-library would be acceptable as well, as I can easily make my own Python bindings.
OK, so I wrote it, and released it as a library.
http://pypi.python.org/pypi/svg.path
Try 'Inkscape' (IMO the best SVG editor out there), looking at their source code, and see how they do it - and possibly you can reuse their libraries (they have a embedded Python scripting engine too) without much rework.

WYSIWYG tool for programming GUI in Python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I was hoping to find a tool similar to Borland Delphi or VisualBasic for Python. Basically, I want to be able to program Windows apps with ease, without actually having to code every single widget. Does such a software exist? Thanks!
Here's one for wxPython:
http://wxglade.sourceforge.net/
Here's how to do it using Qt Designer for Qt4.
https://web.archive.org/web/20130706112923/http://diotavelli.net/PyQtWiki/Creating_GUI_Applications_with_PyQt_and_Qt_Designer
You might also want to have a look at traits. It's pretty easy for simple designs.
For wxPython: wxGlade, Boa Constructor (super old), wxFormBuilder
See also http://wiki.wxpython.org/wxPythonPit%20Apps
PyQt / PySide comes with Qt Designer
Personally, I always hand-code all my wxPython applications. It's really pretty easy and gives me a lot more control.
All these tools are light years behind Delphi or Lazarus in Pascal world. The sad truth is that there is no real RAD GUI tools comparable to Delphi in Python world.

Controlling Music and Video in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to write a karaoke program in python. Every karaoke software has basic functionality like seeking in the video as well as modulating the pitch of music by half steps. What are some modules that I can use to permit this functionality?
I'm going to use wxPython to write the gui portion if that makes a difference!
Honestly you might want to take a look at PyGame - it has fairly robust libraries for handling stuff like music and movies: http://www.pygame.org/docs/
wxPython has a built in media controller, wx.MediaCtrl, which can play both audio and video. It has most of the basic functionality built in, like seek, pause, etc. I've found it very easy and reliable.

Categories

Resources