GTK programming
hi ppl!
i m having difficulties in doing a popup message box using GTK+2.0 in my source code. how do i write a code in which when a user clicked File at the menu bar, subsequently New, then a pop up message box will appear where the user can type in editable strings in it? can somebody pls help and giv me a rough idea, and if possible some sample codings? tq tq... |
I think the use of a file selection dialog is more appropriate in this case.
There is a good set of example (in python however, but you did not specify the language anyway, so hopefully you don't mind :-) http://www.ittc.ku.edu/~niehaus/clas..._gui_examples/ |
Quote:
|
|
Quote:
|
hi may i know how do we embed the popup message when we clicked at New under the File (menubar) using GTK+2.0?
btw i dun use PyGTK though i find the examples useful. Is GTK meant only for designing the interface? and there is no way you can link it to a list of document files provided you type some linux programming in it? i m sorry cz i m still blur in that. Further more, how do i used the execlp(exec function used in terminal) to be used in the coding? I had tried but failed. Pls help! tq... |
Quote:
|
Quote:
Quote:
Quote:
But in GLib (http://developer.gnome.org/doc/API/2.0/glib/index.html) there is a lot of tools which are not limited to GUI If you are serious about learning more about programming in Linux in general, you should try buy some books on this subject. Quote:
|
This example should be very easy to understand
http://www.linuxheadquarters.com/how...ledialog.shtml |
Quote:
Later I will take a serious look at that and try to get some idea. gotthe GTK+ installer did the sh configure and then make and then make install and it loaded, I think it is GNU only not KDE. So may have to load it as a menu option in KDE. |
hi there again!
may i know why do i face this error while compiling the source code using gtk+? could not find config.h is there any way to solve this? |
include path issue.
Try modify -I parameter to gcc such that the location of config.h is included It is not a GTK issue. It is a rather basic C compilation issue. It is better if you can read something about the use of gcc/g++ first. |
All times are GMT -5. The time now is 02:20 PM. |