GTK界面编程(二):按键组件

文章目录

      • 一、按键

一、按键

代码示例:

#include  
#include  

//点击按钮后被调用的函数,用于输出hello,world
static void button1_print_msg (GtkWidget *button , gpointer data)
{
   
    printf(" Active!\n");
    printf("ret = %d \n",system("ls"));//正常  ret = 0
	printf("ret = %d \n",system("cd ~/apollo"));//正常  ret = 0
    printf("ret = %d \n",system("bash docker/scripts/dev_star

你可能感兴趣的:(C/C++,Linux,linux,gtk/gtk+,gui)