Programming :: Interface Glade 3.6.7 And 'C' In Ubuntu 10.10?
Apr 18, 2011
this is my first time here: I've been programming GUI software in C# in MonoDev for some time now. I just noticed that I can use my favorite language, C, with Glade to do the same thing. I've been going through some tutorials with a little frustration with them. Some seem to be written for older Glade versions.
The latest example had me save my Glade project to a "tutorial.glade" file. Then run it through a 'gtk-builder-convert' utility. Problem: the utility program returns errors indicating the the tutorial.glade file was written badly, that there is supposed to be a <glade-interface> tag that is missing.
[Code]...
View 1 Replies
ADVERTISEMENT
Jan 26, 2011
opening a text file from glade interface.how?using c code
View 1 Replies
View Related
Jan 30, 2011
I am working with ubuntu (linux) and have to create a graphical user interface. The GUI is a 2-D plot that have to plot a point. The point ( x and y co-ordinates) are not hardcoded, and are coming from another file (another piece of code written in c / python). I was thinking to use Glade with c/python to create this. But, I am not sure how to start with this.
View 4 Replies
View Related
Feb 9, 2011
I am a fairly new ubuntu user. I am using ubuntu 10.04 and glade 3 for building a simple interface that uses C. In my interface , I have created two buttons : start and stop .Tofocus on my actual problem , I have created a simpler UI and code. start button runs a while(1) loop and stop should stop the loop .
The problem is , when I press start , the gui freezes and I cannot press any other button. I cant even close my app.After some thorough experimentation, I found out that when I press start, it never comes out of the while loop. I need the loop to keep running until I press stop . What should i do? Here are the functions for the clickable buttons :
Code:
void
on_start_button_clicked (GtkButton *button, gpointer user_data)
{
flag1=0;
while(1)
{
printf("**********checking !!!! ********
[Code]....
View 3 Replies
View Related
May 1, 2011
After upgrading my media computer earlier today, I tried to run Samba config (system-config-samba) and it crashed. Running again in terminal I got the following error:-
Code:
import mainWindow
File "/usr/share/system-config-samba/mainWindow.py", line 30, in <module> import gtk.glade
ImportError: No module named glade
Ths was fixed by installing (via Synaptic):-
Code:
python-glade2
View 2 Replies
View Related
Feb 12, 2011
I have created a glade file which so far have two regions in it:
1) On the right division is a toggle button which calls a C script when enabled.
2) I have a drawing area, in which I would like to plot a point (X-Y scatter plot). The plot should be generated dynamically using a C script. I am not sure how the integration between the two is possible for a drawing area.
In glade what properties of drawing area should I set? eg.expose event, realize etc. I was thinking of using cairo for generating the plot.
View 2 Replies
View Related
Dec 17, 2010
I have searched the net for guides on GTK/Glade and have learned that I have to install Glade in order to experiment with it. It also appears that it only works for Perl. I would primarily like to use C ,Bash , Pascal or settle for Python if possible. Can anyone offer some general info on this topic?
View 4 Replies
View Related
Dec 18, 2010
I am working on a small project for making a small configuration tool for ubuntu 9.10 for new linux users, that make their system working easily without knowledge of the linux commands.I created a gui in glade and loaded the gui with my python program to show up, now i wish to have some python codes that can launch a gnome terminal (and also pass some linux commands to it) on the click of a button contained in the glade file.
View 1 Replies
View Related
Jan 8, 2011
I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..
View 8 Replies
View Related
Jan 15, 2010
I have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.
The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.
View 2 Replies
View Related
Jan 6, 2011
The following are the output of command "ifconfig -a":
[Code]....
The interface "eth0", which is down, was not displayed, but loopback interface has been displayed. So, how can I make my application display all interfaces, including the interfaces which are down, but excluding the loopback interface?
View 4 Replies
View Related
Mar 27, 2010
I'm trying to write a GUI using Glade and pyGtk. I had a problem so decided to go back and start from a helloWorld, but I still have a problem. here is my code for the program
Code:
#!/usr/bin/env python
import sys
try:
import pygtk
pygtk.require("2.0")
except:
pass
try:
[Code].....
View 7 Replies
View Related
Jan 24, 2011
I had glade package installed. But dpkg -I didn't yield any information. I am baffled.
View 1 Replies
View Related
May 9, 2011
I really need to download the Glade interface designer. So when I go to the ubuntu software center and click on it, it doesn't give me an option to download. Then, when I click "more info" it says, "To show information about this item, the software catalog needs updating". So I go ahead and run
Code:
sudo apt-get update
and still I can't download.
View 1 Replies
View Related
Apr 27, 2011
I've been having several serious problems with the ancient version of glade included in squeeze. Now it is entirely unusable. I'm convinced the only way to fix this rediculous mess is to install a newer version. Guess what? testing and unstable have the exact same version as squeeze. The experimental one can't be installed because out of the 20 or so packages it needs installed to run 18 are missing. Is there a half-decent repository where I can get a new-ish version of glade? Try compiling from source and tada: My "intltool" is too old whatever that is.
View 8 Replies
View Related
Jul 20, 2010
I recently upgraded to lucid. During the upgrade, I got a message about Glade being incompatible(?) and clicked ok. It was uninstalled with several dozen packages.
I would really like to get it back. Is there a compatibility issue with Glade and 10.4?
View 3 Replies
View Related
Oct 27, 2009
Is there any API or event notification scheme to tell when the network is down/up?
View 1 Replies
View Related
Aug 18, 2010
Just as there are interface designers for GTK+ and Qt, is there an interface designer for Clutter? If there is, how can it be installed in Ubuntu?
View 14 Replies
View Related
Mar 9, 2010
how i can change the run application window of gnome panel; i had done this with glade-3 but i dont know how to manage its signal and slots for example by clicking on a button it opens an app ,i cant manage it signals and slots
View 1 Replies
View Related
Apr 3, 2011
what the best free linux graphic design interface was? Possibly one from the ubuntu one software center. I tried boa constructor and it was glitchy and kept crashing. I want something very easy to use and as simple as possible as i am new to programming. I want something that also supports the major programming languages like python C++, etc and was also wondering where i could go to learn codes for python.
View 4 Replies
View Related
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
View Related
Apr 29, 2011
Is there a way to open a network interface (that is not configured, yet), to send and receive some packets? The program will be running with root permissions.
View 11 Replies
View Related
Nov 30, 2010
During my read, "Code Complete",the author described the different ways of handling the ADT interface.He has wrote this passage:
Quote:
Option 2: Explicitly provide the data used by the ADT services. In this approach, you declare the data that the ADT uses within each routine that uses an ADT service. In other words, you create a Font data type that you pass to each of the ADT service routines. You must design the ADT service routines so that they use the Font data that's passed to them each time they're called. The client code doesn't need a font ID if you use this approach because it keeps track of the font data itself. (Even though the data is available directly from the Font data type, you should access it only with the ADT service routines.This is called keeping the structure "closed.") The advantage of this approach is that the ADT service routines don't have to look up font information based on a font ID. The disadvantage is that it exposes font data to the rest of the program, which increases the likelihood that client code will make use of the
ADT's implementation details that should have remained hidden within the ADT.
The problem is that it is a bit subtle in terms of coding for me. Can anybody give more concrete example, in working codes, especially in Java?
View 2 Replies
View Related
May 22, 2011
I'm not sure if I'm posting in the correct section, so please move it if it isn't.I currently have a bunch of laptops for testing a distributed network - throughput etc., using a bunch of bash scripts that send or listen to multiple addresses and ports, which run iperf. But at the moment I have to run it from each machine, or log in through ssh.To make this easier, I'd like to be able to present a bunch of buttons and selections from a web interface, so I can just put in the hostname of each laptop, and then click on a presented 'send' or 'listen' button to then execute iperf, and be able to kill it early if need by, say, by a 'stop' button.
What is the best way to go about this? Python, JavaScript, Java Servlet?And how would I do it? Just one of the above on Apache or something on each laptop?I just don't which direction to start heading in. Any help would be greatly appreciated.BTW. The network is considered to be not connected to the Internet, so I'm not too concerned about security, but if you've got any suggestion of how to start and stop iperf securely from a web interface on a machine, I'm interested.
View 2 Replies
View Related
Sep 29, 2010
how to interface ADE7758 with AT91sam9261 using SPI protocol
View 2 Replies
View Related
Jun 23, 2010
I want to get info about network interfaces in C , is there any library for this purpose ?
View 1 Replies
View Related
Apr 26, 2010
I have UDP packets generated on Machine A that are addressed to Machine B (unicast) that I capture with PCAP. After transporting this raw data to Machine B (via RF modem) I'm trying to reinject the original UDP on Machine B through a tap0 interface. The capture and transport are all working fine. BUT once on the destination machine, the reinjected ethernet packets are NOT being received by a local UDP server. this is my socket creation :
Code:
outputSocket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
struct ifreq s_ifr;
strcpy(s_ifr.ifr_name, "tap0");
"data" is an unsigned char array that contains the original packet data received from pcap, which includes the ethernet header, ip header, udp header, and payload data. after the call to write() completes, Wireshark on Machine B sees a correctly formatted (checksums and all) UDP packet when listening to tap0 - ie. no lines highlighted in red. *BUT* - a UDP server i have running on Machine B never receives the reinjected UDP datagram. (I have verified that this server works, by using a simple local udp generator app.) is there something wrong with how I'm creating the socket and/or writing the data back out to the tap0?
View 1 Replies
View Related
Jan 18, 2010
I have to run a program repeatedly that demands a few responses from the users when run: a few yes/no questions and a filename. To save time I was going to use a script. I already use this one to run the program once ("program" is the command to launch the program I use):
Code:
program << echo
file.log
y
n
[Code]....
View 2 Replies
View Related
Oct 10, 2010
My senior project team at Penn State is starting to write our code, and I was looking for a revision control system to manage it. I was going to use CVS, but I can't find a client that doesn't have to install something on the local machine(we dont have administrative permissions on school computers). Is there a CVS(or Subversion or anything else) client that comes as a single executable file or web interface?
View 3 Replies
View Related
Dec 28, 2010
In C++ or C, is there anyway to detect the name of the module or driver currently used by a network interface card (either wired or wireless, INCLUDING USB DEVICES)?My application must have this feature. I just want to detect whether the module / driver is ndiswrapper or not.
View 4 Replies
View Related