Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

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

Open

Description

@uvtc

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.

Activity

  1. uvtc commented on Sep 26, 2018

    @uvtc
    Author

    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.

  2. TingPing commented on Sep 27, 2018

    @TingPing
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions