Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: section showing how to draw lines and simple shapes #109

Open
uvtc opened this issue Sep 6, 2017 · 2 comments
Open

Feature request: section showing how to draw lines and simple shapes #109

uvtc opened this issue Sep 6, 2017 · 2 comments

Comments

@uvtc
Copy link

uvtc commented Sep 6, 2017

An example showing how to draw lines and simple shapes was one of the first things I looked for in this tutorial but was disappointed not to find.

I suggest a window with a few input fields to specify x,y pairs of points/vertices, and then maybe a button to draw a triangle using those points as the corners of the triangle.

@uvtc
Copy link
Author

uvtc commented Sep 26, 2018

Oooh. I added this issue about a year ago, and just now ran across it again. Perhaps it would be helpful to add: I don't know what widget one would use to draw points, lines, and shapes, but if it's not something covered by PyGObject (maybe something via a Python binding to Cairo?) then it would probably still be useful to include something pointing the reader in the right direction.

@TingPing
Copy link
Contributor

Probably GtkDrawingArea and yes it uses pycairo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants