The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 14,375β€…    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: April 8, 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:

Zenity Add Entry

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)

⇧ How to detect processor correct temperature in conky How do I get the CPU temperature?  β‡©