[Glade-users] Glade with python
- From: hamid.r1988 at gmail.com (Hamid)
- Subject: [Glade-users] Glade with python
- Date: Sun, 28 Nov 2010 03:28:59 +0330
Finally solved my problem,
After searching the internet found a nice tutorial that advised use
GtkBuilder instead of LibGlade.
I convert .glade file with gtk-builder-convert and use from converted file
and create the GUI with signal handling in simple solution (:
Here is that tutorial:
http://www.micahcarrick.com/gtk-glade-tutorial-part-3.html
Attached my first script,
I'll be happy if tell me my mistakes.
and thank you from francesco for your help and attention (:
Best Regards.
On Sat, Nov 27, 2010 at 3:32 AM, Hamid <hamid.r1988 at gmail.com> wrote:
Sorry for further reply, but want to say something that my problem be
clearer.
For my first application and experience with Glade, I want to create a GUI
solely without any signal handling.
Just showing a GUI.
But my Glade design not showing and python scrupt hangup in gtk.main()
function.
Whereas when I using a samne prebuilt Glade file, my script works well !
On Sat, Nov 27, 2010 at 3:17 AM, Hamid <hamid.r1988 at gmail.com> wrote:
Thank you for your help Bill,
But I want to use Glade as GUI Builder and its XML file to create my GUI,
don't want to directly write code for GUI building.
When I use glade XML file, For example, likely I have not access to a
button's connect function to handle his signal.
And so, In this case how can I handling signals correctly ?
Tried to use "glc" for automated signal handling, but give me some errors
http://glc.sourceforge.net
On Fri, Nov 26, 2010 at 6:31 AM, Bill O'Connor <billyoc at gmail.com> wrote:
Hamid <hamid.r1988 at gmail.com> writes:
evereything was good with glade, Then write a python script and handle
signals.
That tutorial script uses self.wTree.signal_autoconnect( dic ), which is
a cheap way to get signal handling. Don't do that. Look at this script
for an example of a signal handler and how to connect it.
http://www.pygtk.org/pygtk2tutorial/examples/helloworld.py
--
My Public PGP Key: http://tinyurl.com/hamid-pgp
--
My Public PGP Key: http://tinyurl.com/hamid-pgp
--
My Public PGP Key: http://tinyurl.com/hamid-pgp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20101128/4e2faf20/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autoShutdown.tar.bz2
Type: application/x-bzip2
Size: 2684 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/glade-users/attachments/20101128/4e2faf20/attachment.bz2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]