GUI Component of the scripting language-GTK exercise

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.