You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 weeks ago | |
---|---|---|
README.md | 2 weeks ago | |
main.slo | 2 weeks ago | |
module.json | 2 weeks ago |
README.md
dlgs
This module is based on a similar golang module. It exists to attempt to provide easy system dialogs for slope applications.
At the time of writing, only Linux is officially supported. There are plans to add OSX and Windows support in the future.
API
(dlgs::entry [title: string] [msg: string] [default-txt: string])
- =>
string
|#f
- =>
(dlgs::password [title: string])
- =>
string
|#f
- =>
(dlgs::file [title: string] [ext-filter: string] [directory: bool])
- =>
string
|#f
- The extension filter should take the form of space separated file extensions (
*.jpeg *.jpg
)
- =>
(dlgs::file-multi [title: string] [msg: string])
- =>
list
|#f
- The extension filter works the same as
dlgs::file
above. Using this procedure allows for multiple files to be selected.
- =>
(dlgs::yes-no [title: string] [msg: string] [default: bool])
- =>
bool
|#f
- =>
(dlgs::color [title: string])
- =>
string
|#f
- The string will be in the format:
rgba(255, 255, 255, 0.8)
- =>
(dlgs::error [title: string] [msg: string])
- =>
number
(exit code)
- =>
(dlgs::warning [title: string] [msg: string])
- =>
number
(exit code)
- =>
(dlgs::info [title: string] [msg: string])
- =>
number
(exit code)
- =>
Dependencies
On Linux, and possibly on BSD, dlgs subprocesses out to either zenity
or qarma
. Many major distributions will come with one of these already installed; but more bespoke configurations may require an installation of one of them in order for dlgs to function properly.
Other than that there are no further slope dependencies other than the interpreter itself.