Programming :: Make A GUI Program From C?
Jun 30, 2010I want to know how can I make a GUI program from a shell program I coded in C a long time ago. Can anybody point me to good tutorials?
View 4 RepliesI want to know how can I make a GUI program from a shell program I coded in C a long time ago. Can anybody point me to good tutorials?
View 4 RepliesI am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...
Using PyQt4, is it possible to make a program where you can separately write custom QWidget subclasses and let the user add/remove them to your main app?
View 7 Replies View RelatedI'm trying to do a shell script which are suppose to run a program as a specific user at system boot up. The problem is that I don't know for sure how to make the script add the users password to the prompt when it's necessary.
Basically the program would be run like this:
sudo -u extrema program_name -r /srv/program_name -d
and in this example the password is, "hidden".
How would I make this script run this program as user extrema with the password "hidden" at boot-up? I know how to put the script in the rc.X directory and so on, its more the syntax of the code.
First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:
Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today
[Code]....
When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?
I need to make some C program under linux to make some scripts that can talk to my Server's Parallel port by sending some quare signal as high or low, so what i can do ?
View 4 Replies View RelatedTitle : Author : Price
France : Mark : 40
Persia : John : 50
how i arranged my database. I am trying to write aprogram which does a search either using Title, Author or both.
[Code]....
but i am still unclear on how i am able to make the program check if either on of the input(either $Title or $Author) is not filled up, and if one of it is not filled up, use the other one which is filled to do a search.
I want to make a program that maintains a list of tags that can be attached to a set of files. Store the tags in the files. The main problem is that there is no way to get a list of all the tags without reading each and every file. And also what if you have an unused tag? Have a file that contains tag "keys" and file list "values". This seems like it would be fast and effective, but what if one of the files gets renamed?
View 12 Replies View RelatedI am new to linux and am trying out script writing. I am using shell. How can I make a script to open a program then operate within that program?
View 5 Replies View RelatedI will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
Ok so Basically i have 2 questions
1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux
Code:
2. i need to know how to run/execute/open a file in a c++ program im using and its not working
Code:
I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)
My current Makefile
Quote:
#What needs to be built to make all files and dependencies
clean:
# End of Makefile
I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.
I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop
im trying to build a simple program for my C programming class, this is the source code
#include <stdio.h>
int main()
{
int length, width, length, height, area, perimeter;
perimeter = width + length + height;
area = width * length + heigth;
[Code]...
i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?
Im trying to make an all in one program splash screen for ubuntu.
the idea behind this is, I have alot of staff at my store who will be using a system system for a few programs, but almost none of them have any real use of ubuntu.
What I would like to do is have them log in and instead of seeing the desktop have a splash screen pop up with the program choices they can use, all in one place.
After installing a few packages without a package manager (yast), I was wonding if there is anyway to make a shortcut (or application link or whatever its call) for any given program you install to show up automatically on all users desktops and start menus(for lack of a linux term). For example I installed firefox to a folder in the /opt directory and found that i could drag and drop the shell command to the desktop to make a shortcut, or i could create a new application link on my desktop and point it at firefox. But what If i wanted that to show up for all users somewhere by default? Is there anything like the "all users" desktion winXP or the "public user" in win7?
View 2 Replies View RelatedI have a dedicated server which runs a game server. On that dedi, I had Debian installed, and I wanted to have graphical access to it so I installed Gnome and nxserver. I want the game server to run automatically when the server boots up and have it appear in a console window when I connect to nxserver. So I added it in the Startup list by going in System > Administration > Session.
My problem is that the program doesn't start when the system boots up, but only when I connect to nxserver. So I assume it is something like gnome not starting up or opening a session until I open one remotely or something such.
But is there anyway to have that game server start in a console window when the system starts up? I tried using init.d but the problem is that it doesn't open any window, and I need to interact with the server through the console. What can I do?
In Ubuntu 10.04 running Gnome I can right click on any window and it gives me an option to show that window on all desktops, so even if I switch to a different virtual desktop, that window will always show.Is there a command in terminal that can do this?
View 1 Replies View RelatedI'm wondering if anyone can tell me how to make rhythmbox appear when I load it? At the moment it just puts an icon in my notification tray. However, I just want it to appear so I can choose music! Does anyone know how I can just make rhythmbox appear on screen when I start it up?On a related note, does anyone know why rhythmbox has this odd behaviour? If I'm starting the music program, there's pretty much a 100% chance I want to start playing music, and I can't do that without looking at my music list in the player. So why would it not appear by default?
View 3 Replies View Relatedin order to play "Gish" - I need to cd .gish./gish- otherwise it won't find it's files - it need the working path, how can I put that in a sigle line in my games menu ?
View 2 Replies View RelatedHow to make a shortcut to a program?
It's a Java program started by a shell script
#!bin/sh
java -jar LinShredder.jar
It starts okay in its original folder, but when I link to it from e.g. the desktop it doesn't work.
I amtrying to install a program and at the point when I am required to execute the command "make clean" and then after "make all" , I obtain the following eror message:
ndoheric@nen-laptop:/opt/WAVEFORPGM/distribute$ make clean
cd ./MyTime; make clean
make[1]: Entering directory `/opt/WAVEFORPGM/distribute/MyTime'
[code]...
I was curious if you can make a program (lets call it cplay for music). The only thing allowed during a session. I ask this because I wanted to use my laptop as a boom-box for when I have friends over and what not. But I only want them to be able to scroll through Cplay and change the song if they find something else they like. With out them being able to open anything else. I have it so all you can do in the terminal is the Cplay options and you can not end it without ending the Terminal session it self. But now I want only that to be allowed and nothing else. (if you understand what I mean).
View 3 Replies View RelatedI've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:
#!/bin/bash
python gen.py
and set it to autostart with:
chmod 755 scr.sh
mv scr.sh /etc/init.d/scr.sh
sudo update-rc.d scr.sh defaults
What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?
I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python gen.py >> ttyS0 in shell script?
I just installed 11.04 and I wonder what pgm to install to make DVDs from avi and mpg files. I used to use DeVeDe but the last couple DVDs were bad.
View 7 Replies View RelatedI recently downloaded eclipse IDE and Seamonkey, which are both currently executable files, but they do not show up under 'applications' on the top panel. Is there any way for me to change this such that they can appear under 'Applications' in any of the subcategories?
View 2 Replies View Relatedi've installed ubuntu studio on my old pc and it's barely working. (sorry for my language) when i put on player to play a song everything is ok but when i try to make an other program to play sound it doesnt... i saw about the jack server but i can't unterstand what am i suposed to do. the programs that succsessfully play sound are: media player, chrome, mozilla, some games.
View 6 Replies View RelatedWhat is good program and that is easy to use to make a image of a linux partition
View 3 Replies View RelatedHow Do I make a file a executable program ?
View 3 Replies View Relatedi just installed debian squeeze today and i was trying to install a program and when trying to install a .deb file and i got the error message "Error: Dependency is not satisfiable: libcurl3" when i searched the repos i found "libcurl3-gnutls" is there any real diffrence between libcurl3 and libcurl3-gnutls? and is there a way i could edit the .deb installer to change the dependancy to make the program compatible with libcurl3-gnutls?
View 8 Replies View Relatedeven though this is a simple task I always have problems to do this.I want to execute the following#!/bin/bashjava -jar JabRef-2.6.jaror in other words this is the command I use in konsole to make the application to launch.Then usully I try to create a desktop in the icon either by using a. create link to locationorb. create link to application.where I select as file the file myfile.sh that contains the two lines of code I posted above (see again below)
"#!/bin/bashjava -jar JabRef-2.6.jar"I do this file executable by using the chmod +x.Sometimes I think this works while others like now I only receive the cursor bouncing for sometime before it dissapears