Views:
14,768β
Votes: 1β
β
Solution
Tags:
16.04
bash
zenity
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/853717
Title:
How do i Create a Zenity form with a check list in it
ID:
/2016/11/26/How-do-i-Create-a-Zenity-form-with-a-check-list-in-it
Created:
November 26, 2016
Edited: April 13, 2017
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
It would appear the --add-entry
option is not supported when --list --checklist
are used. I adapted your code to create:
#!/bin/bash
zenity --list --checklist --title="Options"\
--text="Select your features"\
--column="Use"\
--column="Feature"\
TRUE A\
False B\
zenity --forms --title="Create user" --text="Add new user" \
--add-entry="First Name" \
--add-entry="Last Name" \
--add-entry="Username" \
--add-password="Password" \
--add-password="Confirm Password" \
--add-calendar="Expires"
The first section you know what it looks like already. The second section looks like this:
The --add-entry
works on --forms
dialog box type but not on --list
dialog box type.
Credit for βforms code to: (Post on Stack Exchange)