
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
tkCanvasGraph is a Python library that implements a tkinter canvas on which users can display and manipulate graphs.
The documentation is available on http://tkCanvasgraph.readthedocs.io/.
A small example of its usage:
.. code:: python
import tkinter
from tkCanvasGraph import CanvasFrame, Vertex, Edge
root = tkinter.Tk()
frame = CanvasFrame(root)
frame.pack(fill="both", expand=True)
v1 = Vertex(frame.canvas, label="vertex1")
frame.canvas.add_vertex(v1)
v2 = Vertex(frame.canvas, label="vertex2")
frame.canvas.add_vertex(v2)
edge = Edge(frame.canvas, v1, v2, label="edge")
frame.canvas.add_edge(edge)
root.mainloop()
It creates a new tkinter window, fills it with a CanvasFrame
(a tkinter
frame containing a tkCanvasGraph frame.canvas
, but also buttons to apply
layouts, and scrollbars), then add two vertices and one edge.
Another example is the tkCanvasGraph/__main__.py
file:
.. code::
python -m tkCanvasGraph
It opens a similar window with additional functionalities:
Look at the code to get more insight on how to use the library.
FAQs
A library to display and manipulate graphs on a tkinter canvas.
We found that tkCanvasGraph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.