Score:0

is possible in zenity add combo box and list togeter?

cn flag

hi is possible insert inside of gui created in zenity the combobox for choice what i want ?

enter image description here

#!/bin/bash

# Definisce la dimensione della finestra
width=800
height=900

# Array contenente le opzioni del menu a tendina
options=("USDT" "BTC" "BUSD" "EUR" "ETH" "BNB" "DAI" "GUSD" "UST" "VAI" "HUSD" "USDN" "TUSD" "PAX" "USDC" "IL_RESTO")

# Mostra il menu a tendina per selezionare una crypto base
selected=$(zenity --forms --title="Aggiungi Amico" \
        --text="Seleziona una crypto base dal menu a tendina:" \
        --add-combo="Crypto Base" --combo-values="${options[@]}" \
        --add-list --title="Contenuto della tabella $table" --text="Ecco il contenuto della tabella $table:" --column="Simbolo" --column="Valore Medio (%)" --column="Quantità è Zero?" --column="Valore che si ripete di +" $formatted_content --width=$width --height=$height \
        --separator="," \
        --width=$width --height=$height)

# Aggiunge i valori inseriti dal'utente nel file csv
echo "$selected" >> addr.csv

# Verifica lo stato di uscita di zenity e stampa un messaggio di conseguenza
if [ "$?" -eq 0 ]; then
    echo "Amico aggiunto."
elif [ "$?" -eq 1 ]; then
    echo "Nessun amico aggiunto."
else
    echo "Si è verificato un errore inaspettato."
fi
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.