tyson Posted May 30, 2015 Share Posted May 30, 2015 I'm not sure where to start with this and was hoping for some advice. I'd like to be able to quickly display (and then dismiss) a slider that can be adjusted through scrolling which adjusts something like display brightness. The volume adjustment slider in the menu bar on a mac has the behavior I'm looking to simulate. I'd rather stick it into a workflow rather than code a separate app since Alfred is always open. The only thing close to this I've noticed is that the Packal Updater workflow somehow loads a window running php. If anyone has an idea on where I could start I'd appreciate it. Link to comment
deanishe Posted May 30, 2015 Share Posted May 30, 2015 The Packal Updater window you're talking about is based on a self-contained web application that starts its own webserver. It's started via Alfred, but is otherwise entirely independent of it. There are several apps (Pashua, CocoaDialog, Platypus) that allow you to give your scripts a simple GUI, but none of them has a slider widget AFAIK. Python includes a slider widget that's very easy to use. It doesn't respond to scrolling out of the box, however. Link to comment
tyson Posted June 1, 2015 Author Share Posted June 1, 2015 Thanks that helps, doesn't look like any of those GUIs include sliders. If I code something like that slider in Python will it be able to pop up just by running the python script with Alfred? Link to comment
deanishe Posted June 1, 2015 Share Posted June 1, 2015 Yup. If you run the lines of code at the top of the page I linked to, a window with 2 sliders will appear. It doesn't do anything though. As far as GUIs for scripting languages like Python, Ruby, PHP etc. go, it also loads very quickly (it's a very small library). Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now