Hi ๐. Visit my website, LinkedIn, or contact me.
ninest / aquaui Goto Github PK
View Code? Open in Web Editor NEWDisplay native dialogs, alerts, notifications, color pickers, and more with Python
License: MIT License
Display native dialogs, alerts, notifications, color pickers, and more with Python
License: MIT License
Hi ๐. Visit my website, LinkedIn, or contact me.
tell application "Brave Browser" to display dialog "Some Message from Brave" with title "A title"
This will show a dialog with a title at the top, and move focus to Brave Browser.
If you tell application then display an alert, it will show Brave's icon.
But showing a notification after tell will not change the notification's icon, unfortunately.
Currently, an applescript is generated as a string. Nothing too complex to it. The problem is that it's easy to miss out a space here or there
self.applescript = f"display dialog {quotify(text)} "
# Notice the space at the end
It may be better to do something like
self.applescript = ["display dialog", quotify(text)]
...
# Adding title
self.applescript.extend(["with title", quotify(title)])
Then using a loop, create the applescript and appropriately put spaces
Single quotes work fine, but double quotes don't.
All double quotes are escaped:
script = script.replace('"', '\\"')
and this causes issues when there are double quotes in the string.
from aquaui import Alert, Buttons
# Works
Alert("How're you?").show()
# Doesn't work
Alert('How"re you?').show()
Alert('How\\"re you?').show()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.