Programming :: Use Glade With C/python To Create A Graphical User Interface
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.
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?
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.
I'd like to ask how to create new gtty in redhat, I already know how to create new text terminal (tty) by appending a line in inittab file.. but I wanna add a graphical one
I have installed ubuntu server 10.04 sucessfully. But I'm new to ubuntu so I need graphical user interface(GUI). How can I install gui in ubuntu server 10.04.
I have a Linux mail server (Fedora). This server was set up long before i joined this organization. Now I have these issues I would request assistance:
1. I am not able to access the Graphical User Interface(gui) on this machine. Startx does not work. I have also tried using combination keys alt+ctrl+f...keys but no progress. As a result am not bale to do some tasks.
2. The clamav that is on the machine has since become outdated. Efforts to update it to latest versions have failed. How do i get to update clamav and protect my system?
3. Because of not being able to access the gui as well as the inability to update clamav have led to my server apparently sending spam mail which in turn have led to my public ip being black listed in a number of sites. Now how can i secure this server so that it stops sending the spam mail and hence avoid future blacklisting?(NB am using postfix and the server sits behind a router which connects to the Internet)
4. I have observed that the server has some iptables rules set but everytime the server restarts the rules stop. I have to manually restart them again to run. How do I sort this?
Does any body knows how to disable the root login to the GUI , like i am running my redhat server on runlevel 5 and i dont need tht root to get login to the GUI , i ma talking about redhat 5.
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 :
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):-
The intent here takes a little background info.I'm trying to make a basic inventory control to reinforce my studies. It will have a while loop that displays amenu for add, edit, view, and quit. Lets assume the following:
Code: class inventoryItem: itsDescriptiveName = None
Does anyone know what is the best open source proxy solution out there? What we need out of the proxy are the following: Access Control - There should be a web interface for managers to login and create proxy user ID's for external people Good password complexity requirement Lock down the allowed websites
In Windows, I was able to use IE as a user interface because I could code a WSF (Windows equivalent to shell script) to respond to events in IE.Now that I've moved to Linux/Firefox, I'd like to use Firefox in a similar way. Specifically, I would like to write a bash script to run lsdvd with XML output, use XSL to transform the XML for Firefox, then take an action (encode a selected track on the DVD) based on the user's selection. I would be happy if I could make Firefox write something somewhere that the script could read, but I suspect that security measures would prevent that.
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.
I've installed (well, I founded it installed yet in my new job...) Centos 5.3 (Final) version (kernel 2.6.18-164.el5 on an x86_64), but I only can work fron the command line. I don't know if I can use any graphical interface (I've worked with SuSe years ago and it start its graphical interface automaticaly when you reboot the system).
I have to configure sendmail. For it, I download and installed webmin and usermin and start them, but I don't know how to continue...
I would like to start the x graphical interface without using GDM. I may be using the wrong terms here for x. Maybe it is called xdm or x11 or something.) I have set GDM to login without asking me for a password (I am the only user of this machine.) Sometimes, it still pops up the GDM login screen and if I select "actions" "reboot" (my memory tells me that is what it was,) it will reboot without asking to login, but the fonts are all wrong. If I select "apps" "restart" and it DOESN'T ask for my login, all is OK.
I would like to uninstall GDM, and place whatever GDM uses to start the graphical interface into the /ect/rc2.d startup scripts. I know GDM does other stuff then just logs me in and starts the graphical user interface, and I think I would like to maintain some of that, but I think I would like to manually insert the startup sequence in the startup scripts. Question one, can someone tell me where to look to find out what GDM is doing now so I can attempt to replicate it?
#2, does someone know the startup script line(s) to start the x server and graphical interface without GDM? I think this has bees asked before, but it seems hard to search older posts.
I had installed a fresh copy of redhat linux 5 but I am unable to use the graphical mode of commands through the graphical mode as,system-config-*I also tried to install system-config-* package through yum but getting the error message that,cannot open file: system-config-*cannot open file: system-config-*
I've gone though the system purging/removing what I don't require on my Fedora install using the graphical tool in gnome 3. I then used package-cleanup --leaves to clean up some cruft left behind. yum list installed shows I still have 1031 packages installed, which is about 400 more than similar setups I used to have on Debian, and truthfully on Debian I have more stuff installed that I've still got to install here (gimp, nvidia drivers, etc).
I see a buch of stuff in yum list installed I don't need, so I can use yum remove foo to cleanup some more, but I'm wondering if there's another graphical interface or perhaps and advacned option in the add/remove software application I've been using thus far.
I've updated my ubuntu from 10.10 ==> 11.04. Now I can't login using graphical inerface. System is loading but it stops right before I should see screen with login credentials. When I use ctrl+alt+del it's going to reboot properly, the same when i push the power button it's shutting down. System works fine in failsafex mode so I can assume there's a problem with xserver etc. Using Nvidia 9500GS.
i have trouble with my graphical interface, i cant get the window where i can type login and password, its only black, so how can i get into files, an other way to get into the sessio?
I took the hard drive from my server and put it into another machine to install centos with, as the server does not have a working CD drive. So now the situation is that x refuses to start when centos boots. I get a message saying: Failed to start the X server (your graphical interface). It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem?