LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2006, 02:14 AM   #1
spinal2
Member
 
Registered: Oct 2006
Posts: 30

Rep: Reputation: 15
how to make a simple menu


hi guys

i want to make a pogram that when i execute it it displays 3 boutton

for example



-----------|
| |
| menu1 |
|----------

-----------|
| |
| menu2 |
|----------

-----------|
| |
| menu3 |
|----------
so when i click the first menu1 it opens an executable file called for example file1.out
the same thing for the other menu
i have a friend who said to me that there's a software installed in suse that can do this porgram automaticly whithout any programmation
can you help me please?
 
Old 10-30-2006, 03:11 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Ask your friend which software it is and use it. Else give some more details like language.

I will probably try to program that in tcl/tk, but that's me.
 
Old 10-31-2006, 12:51 AM   #3
spinal2
Member
 
Registered: Oct 2006
Posts: 30

Original Poster
Rep: Reputation: 15
he's in france right now !
can you help me please
 
Old 10-31-2006, 01:03 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Does it need to be graphical/"console-graphical", or would it do to have a menu like
Code:
MENU

1 - Launch 1.out
2 - Launch 2.out
3 - Launch 3.out

Your choice: _
If that's all right with you, then check out linuxcommand.org and there how you'll write shell scripts. A very easy thing, takes a minute or so.

But if you do want a somewhat "graphical" button-thingie, then you're going to have to use something else..
 
Old 10-31-2006, 01:06 AM   #5
spinal2
Member
 
Registered: Oct 2006
Posts: 30

Original Poster
Rep: Reputation: 15
the problem is that our professor want a graphic menu
 
Old 10-31-2006, 02:19 AM   #6
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
type the following on an xterm: (cut and paste will do)

Code:
$ wish 
button .b1 -text 'hello' -command {exit}
pack .b1
tcl/tk by the way.

Last edited by bigearsbilly; 10-31-2006 at 02:25 AM.
 
Old 10-31-2006, 02:51 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by bigearsbilly
tcl/tk by the way.
I did not expect anything else from you
 
Old 10-31-2006, 03:30 AM   #8
spinal2
Member
 
Registered: Oct 2006
Posts: 30

Original Poster
Rep: Reputation: 15
guys you forget something that i must use the mouse to click on the boutton so if i click on menu one it runs the application menu1.out
same thing for the rest of the menu
 
Old 10-31-2006, 03:43 AM   #9
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
We forgot something?

the clue is,

-command exit

I think you have enough to complete your homework
eh wim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple boot menu davidleroux1 Mandriva 1 12-01-2004 12:42 AM
Using Select to make a simple directory menu why doesn't it work ctrimble Programming 5 06-07-2004 01:21 AM
I use a GtkItemFactory to make menu,but I want to use a number key to control menu? jiang10000 Programming 0 08-27-2003 02:40 AM
how u make the menu transparent crosslin Linux - General 2 06-04-2003 04:46 PM
How to make menu available to other users? concoran Linux - General 1 11-23-2001 05:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration