GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Jan 31, 2015 8:33 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Starting a GUI in Button Event Handler.
PostPosted: Thu Jan 08, 2015 11:52 am 
Offline

Joined: Thu Jan 08, 2015 11:46 am
Posts: 2
I have a very small app, in which , in main window there are 2 buttons.Each button click event is supposed to execute a GUI programm which is already installed in system.Hence how to call shell commands in those event handlers.Like
Code:
"exec MyGUI"
.
I am using Gtkmm-2.4 on Ubuntu-14.10.

EDIT : As per my last two days search,it is under
Code:
Glib::Spawn
class where one can spawn the process.But still i want an example, to understand it , it's API, is getting difficult to understand.and one more thing the process i want to call upon is a graphical one which is also coded in
Code:
GTKmm
.
Thanks


Top
 Profile  
 
 Post subject: Re: Starting a GUI in Button Event Handler.
PostPosted: Fri Jan 09, 2015 10:12 am 
Offline

Joined: Thu Jan 08, 2015 11:46 am
Posts: 2
Here is Answer to My own Question:

Code:
Glib::spawn_command_line_async("MyGUI");


thanks


Top
 Profile  
 
 Post subject: Re: Starting a GUI in Button Event Handler.
PostPosted: Fri Jan 09, 2015 6:31 pm 
Offline
GTK+ Geek

Joined: Sat Jul 26, 2014 11:43 pm
Posts: 90
Thank you gtkom. I was wondering how to do that myself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group