I have been studying Gtk over the past few days. By the way, I have written some exercises for the graphic interface components in script language display. Currently, the functions include displaying messagebox, checkbox, radiobutton, combobox, and text box input,
In this way, some simple input can be completed in graphic mode during script writing.
Example:
Script: #! /Bin/bash
ROTATEDIRECTION = './smartgui showradiobutton "rotate screen" "Please Select Screen rotation direction" "normal" "To left" "To right" "flip "'
MESSAGE = "the rotation direction you selected is: $ ROTATEDIRECTION"
./Smartgui showmessagebox "Rotating Screen" $ MESSAGE info OK
Component instructions:
Methods and parameters:
Showmessagebox title message messagetype buttonstype
Showentry title message value
Showcombobox title message values...
Showcheckbox title message values...
Showradiobutton title message values...
Showspinbutton title message min, max, step, value
Optional messagetype values
Info
Warning
Question
Error
Other
Buttonstype value options
None
OK
Close
Cancel
Yes-no
OK-cancel
Values... is a variable parameter, that is, the option value.
Download components:
/Files/zhongzf/smartgui-x86-v1_0.zip
/Files/zhongzf/smartgui-arm-v1_0.zip
/Files/zhongzf/Zhiyou zhanbu .zip