Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Blind User Interface (BUI) is meant to be a simple toolkit to design user interfaces with a Pythonic syntax. Having been created by a blind user, it gives a lot of importance to accessibility and compatibility with screen readers, while offering a comfortable user interface that anyone can use. However, this restriction doesn't imply you cannot (and should not) create complex or really beautiful user interfaces with BUI. You should and you can. You might consider helping this project, however, to help create more elaborate interfaces should the need arise.
BUI relies on several core principles:
These simple concepts make for an interesting (and inovative, to some extent) approach to creating interfaces with BUI.
To install BUI, you should simply run pip
:
pip install bui
Here is a basic usage of BUI. This example is briefly explained just below. To test this script, place it in any file and run it with Python, having installed BUI and a supported GUI toolkit:
from bui import Window, start
class HelloBUI(Window):
"""Class to represent a basic hello world window."""
layout = mark("""
<window title="A BUI demonstration">
<menubar>
<menu name="File">
<item>What is it?</item>
<item>Quit</item>
</menu>
</menubar>
<button x=2 y=2>Click me!</button>
<text x=3 y=3 id=report>Report</text>
</window>
""")
def on_click_me(self):
"""When the 'Click me!' button is pressed."""
self["report"].value = "The button was clicked!"
def on_quit(self):
"""When the user press the quit menu item in the File menu."""
self.close()
# Keyboard shortcuts
def on_press_alt_f4(self):
"""When the user presses Alt + F4."""
self.close()
# Linking an alias to a method is so simple
on_press_ctrl_q = on_press_alt_f4
start(HelloBUI)
That's it. This little code will generate a window with:
You will find more explanation in the documentation or by browsing through the examples.
Blind User Interface is available under the terms of the BSD Public License (v3). In short, you can use this code for whatever reason, provided you keep the copyright identifying this code as from BUI. Apart from that, you can use this code for whatever purpose, including to design commercial software. You can find the full terms by reading the LICENSE file.
FAQs
The Blind User Interface: the interface you can design with your eyes closed.
We found that bui 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.