Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Note: This is a Python 3.6+ module.
The tkshapes module adds a GCanvas widget which can contain user-configurable shapes. The GCanvas widget supports the standard Tk canvas shapes, as well as some others useful in diagrams. (Not all implemented yet.)
The GCanvas Keyboard and Mouse controls are as follows:
Control + MouseClickHold-and-Drag or Two-finger swipe to Pan the canvas
Control + MouseWheel or Control + Two-finger Vertical swipe to Zoom In/Out
Click-Drag a single shape to move it around on the canvas
Command + Click to toggle selection of a single shape
Click-Drag on the canvas to mark out a Selection Box
To make a connection between two "Connectable" shapes:
Create your Python 3.6+ virtual environment
python3.6 -m venv env
Activate your virtual env
source env/bin/activate
Install tkapp and tkshapes (The demo.py depends on the tkapp module as well.)
pip install tkapp tkshapes
This library is being developed so that I can use it to build a Digital Logic Simulator app. I wasn't able to find a Tkinter library that did what I need, so decided to try and write one from scratch.
At this time, the only documentation is this README, the code itself, as well as a demo.py which shows the basic usage.
I'm developing and testing ONLY on macOS.
when the Tkinter window is put in full-screen mode using the full-screen green dot button at the top left of the window, mouse position is incorrectly calculated. You'll notice that the calculated mouse position on the GCanvas is slightly off. This appears to be a Tkinter bug, but I'm not 100% sure. Instead of using full-screen mode, you may click Option-GreenDot to maximize the window to use the full screen without actually entering full-screen mode.
FIXED: this issue has been fixed with Python 3.7 releases. I've tested both the standard CPython and Anaconda distributions, and this issue is no longer present. It appears that "Fullscreen Mode" simply does a window maximize now, automatically accomplishing the workaround mentioned above.
FAQs
Draw and interact with shapes on the Tkinter canvas
We found that tkshapes 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.