kdialog.md 1.3 KB

kdialog

์‰˜ ์Šคํฌ๋ฆฝํŠธ ๋‚ด์—์„œ KDE ๋Œ€ํ™” ์ƒ์ž๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ๋” ๋งŽ์€ ์ •๋ณด: https://develop.kde.org/docs/administration/kdialog/.

  • ํŠน์ • ๋ฉ”์‹œ์ง€๋ฅผ ํ‘œ์‹œํ•˜๋Š” ๋Œ€ํ™” ์ƒ์ž ์—ด๊ธฐ:

kdialog --msgbox "{{๋ฉ”์‹œ์ง€}}" "{{์„ ํƒ_์„ธ๋ถ€_๋ฉ”์‹œ์ง€}}"

  • ์˜ˆ์™€ ์•„๋‹ˆ์˜ค ๋ฒ„ํŠผ์ด ์žˆ๋Š” ์งˆ๋ฌธ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ , ๊ฐ๊ฐ 0๊ณผ 1์„ ๋ฐ˜ํ™˜:

kdialog --yesno "{{๋ฉ”์‹œ์ง€}}"

  • ์˜ˆ, ์•„๋‹ˆ์˜ค, ์ทจ์†Œ ๋ฒ„ํŠผ์ด ์žˆ๋Š” ๊ฒฝ๊ณ  ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ , ๊ฐ๊ฐ 0, 1, ๋˜๋Š” 2๋ฅผ ๋ฐ˜ํ™˜:

kdialog --warningyesnocancel "{{๋ฉ”์‹œ์ง€}}"

  • ์ž…๋ ฅ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ  ํ™•์ธ์„ ๋ˆ„๋ฅผ ๋•Œ ์ž…๋ ฅ์„ stdout์— ์ถœ๋ ฅ:

kdialog --inputbox "{{๋ฉ”์‹œ์ง€}}" "{{์„ ํƒ_๊ธฐ๋ณธ_ํ…์ŠคํŠธ}}"

  • ํŠน์ • ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์š”์ฒญํ•˜๋Š” ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ  ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ stdout์— ์ถœ๋ ฅ:

kdialog --password "{{๋ฉ”์‹œ์ง€}}"

  • ํŠน์ • ๋“œ๋กญ๋‹ค์šด ๋ฉ”๋‰ด๊ฐ€ ํฌํ•จ๋œ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ  ์„ ํƒํ•œ ํ•ญ๋ชฉ์„ stdout์— ์ถœ๋ ฅ:

kdialog --combobx "{{๋ฉ”์‹œ์ง€}}" "{{ํ•ญ๋ชฉ1}}" "{{ํ•ญ๋ชฉ2}}" "{{...}}"

  • ํŒŒ์ผ ์„ ํƒ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ  ์„ ํƒํ•œ ํŒŒ์ผ์˜ ๊ฒฝ๋กœ๋ฅผ stdout์— ์ถœ๋ ฅ:

kdialog --getopenfilename

  • ์ง„ํ–‰ ํ‘œ์‹œ์ค„ ๋Œ€ํ™” ์ƒ์ž๋ฅผ ์—ด๊ณ  ํ†ต์‹ ์„ ์œ„ํ•œ D-Bus ์ฐธ์กฐ๋ฅผ stdout์— ์ถœ๋ ฅ:

kdialog --progressbar "{{๋ฉ”์‹œ์ง€}}"