From robert at rehammar.se Wed Jun 4 09:02:32 2008 From: robert at rehammar.se (robert at rehammar.se) Date: Wed, 4 Jun 2008 15:02:32 +0200 (CEST) Subject: [Glade-users] ToggleButtons Message-ID: <55813.129.16.198.20.1212584552.squirrel@webmail01.one.com> Hi Glade-users, I want to have a set of togglebuttons that works like "tool selectors", e.g. like in GIMP, where selecting one tool, unselects the next, and when one tool is selected it should not untoggle if clicked again. Is there a widget to do this, or do I have to implement this functionality my self? It seems to me not a good idea to change the toggle state of a button from the toggle signal of the button itself... Regards, Robert From tristan.van.berkom at gmail.com Wed Jun 4 10:40:46 2008 From: tristan.van.berkom at gmail.com (Tristan Van Berkom) Date: Wed, 4 Jun 2008 11:40:46 -0300 Subject: [Glade-users] ToggleButtons In-Reply-To: <55813.129.16.198.20.1212584552.squirrel@webmail01.one.com> References: <55813.129.16.198.20.1212584552.squirrel@webmail01.one.com> Message-ID: <560259cb0806040740o186b2dd4r352a1481e92e097a@mail.gmail.com> On Wed, Jun 4, 2008 at 10:02 AM, wrote: > Hi Glade-users, > > I want to have a set of togglebuttons that works like "tool selectors", > e.g. like in GIMP, where selecting one tool, unselects the next, and when > one tool is selected it should not untoggle if clicked again. Is there a > widget to do this, or do I have to implement this functionality my self? > > It seems to me not a good idea to change the toggle state of a button from > the toggle signal of the button itself... Use radio buttons, just set all the "group" property of every other radio button to the first radio button. You will still have to handle the "toggled" signal of every radio button individually, thats just how it works. Cheers, -Tristan From jonathan at blueplanet.cl Tue Jun 17 19:06:51 2008 From: jonathan at blueplanet.cl (Jonathan Gonzalez V.) Date: Tue, 17 Jun 2008 19:06:51 -0400 Subject: [Glade-users] Why Glade doesn't support build a TreeModel? Message-ID: <87lk13acfo.fsf@lunareja.lunareja> A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.ximian.com/pipermail/glade-users/attachments/20080617/9800f23a/attachment.bin From plitanium at gmail.com Wed Jun 18 04:30:39 2008 From: plitanium at gmail.com (Rupinder Singh) Date: Wed, 18 Jun 2008 14:00:39 +0530 Subject: [Glade-users] Runtime Error in Glade XML Message-ID: Greetings to everyone, I'm using Glade 3.4.3, and I created a simple GUI containing 2 buttons, named it as GladeTwoButtonsGUI.glade. The source file glade.py contains the following code: *import os,sys,pygtk,gtk.glade class TwoButtonsGUI: def __init__(self): self.window = gtk.glade.XML('GladeTwoButtonsGUI.glade', 'window1') if __name__ == '__main__': TwoButtonsGUI() gtk.main()* When I compiled it using python 2.5 IDLE , it generated the following error: *Traceback (most recent call last): File "C:/Documents and Settings/microsoft/Desktop/Python Files/glade.py", line 9, in TwoButtonsGUI() File "C:/Documents and Settings/microsoft/Desktop/Python Files/glade.py", line 5, in __init__ self.window = gtk.glade.XML('GladeTwoButtonsGUI.glade', 'window1') RuntimeError: could not create GladeXML object* Kindly help me out so I can proceed wth my learning process Yours Sincerely, Rupinder -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080618/fd68a2d6/attachment.html From yangshuaijun at gmail.com Mon Jun 23 11:57:52 2008 From: yangshuaijun at gmail.com (=?UTF-8?B?5p2o5biF5ZCb?=) Date: Mon, 23 Jun 2008 23:57:52 +0800 Subject: [Glade-users] How do I define the pixmaps directory on win32? Message-ID: <767e8f4d0806230857p3f596147ra1207daa9cecff98@mail.gmail.com> In linux or unix, the project's images can locate a place, for example /usr/share/pixmaps. But on windows, when I use python, pygtk, glade 3.4 to develop an application, I find the images mixed with my source files in one directory, glade does copy the images from my pre- defined images directory to application source directory. How do I define the pixmaps directory? I know can define a directory by add_pixmap_directory in linux or unix. How does on win32? -- ??? ?????????? ?????????? From yangshuaijun at gmail.com Mon Jun 23 21:12:22 2008 From: yangshuaijun at gmail.com (=?UTF-8?B?5p2o5biF5ZCb?=) Date: Tue, 24 Jun 2008 09:12:22 +0800 Subject: [Glade-users] How do I define the pixmaps directory? Message-ID: <767e8f4d0806231812i4e207161x5f4a166bafc8cc6@mail.gmail.com> *In linux or unix, the project's images can locate a directory, for example /usr/share/pixmaps. But on windows, when I use python, pygtk, glade 3.4 to develop an application, I find the images mixed with my source files, because glade does copy the images from my pre-defined images directory to application source directory. How do I define the pixmaps directory? I know can define a directory by add_pixmap_directory in linux or unix. How does on win32?* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080624/d5b8a747/attachment-0001.html From marcot at riseup.net Tue Jun 24 18:01:50 2008 From: marcot at riseup.net (Marco =?ISO-8859-1?Q?T=FAlio?= Gontijo e Silva) Date: Tue, 24 Jun 2008 19:01:50 -0300 Subject: [Glade-users] Problem with ComboBox Message-ID: <1214344910.2850.28.camel@quindinho.domain.invalid> Hello there. I don't know if this is a known issue, but it seems strange to me that when I change the Active item value in the proprierties of a Combo Box in Glade 3, from -1 to any value, like 0 or 1, I have this message as soon as the glade file is loaded: (test:5012): Gtk-CRITICAL **: gtk_tree_row_reference_new: assertion `GTK_IS_TREE_MODEL (model)' failed (test:5012): Gtk-CRITICAL **: gtk_cell_view_set_displayed_row: assertion `GTK_IS_TREE_MODEL (cell_view->priv->model)' failed And besides it, the Active Item keeps empty, and is not the first or second on the item list. I'm using Glade-3 3.4.5 with libglade 2.6.2 in debian lenny. The glade file is in: http://marcotmarcot.googlepages.com/sound.glade . Please CC any answer about this to me. Thanks. -- Marco T?lio Gontijo e Silva P?gina: http://marcotmarcot.googlepages.com/ Blog: http://marcotmarcot.wordpress.com/ Correio: marcot at riseup.net XMPP: marcot at jabber.org IRC: marcot at irc.freenode.net Telefone: 25151920 Celular: 98116720 Endere?o: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil From feng.tao at psh.pentax.co.jp Tue Jun 24 21:03:43 2008 From: feng.tao at psh.pentax.co.jp (feng.tao at psh.pentax.co.jp) Date: Wed, 25 Jun 2008 10:03:43 +0900 Subject: [Glade-users] Problem with ComboBox In-Reply-To: <1214344910.2850.28.camel@quindinho.domain.invalid> References: <1214344910.2850.28.camel@quindinho.domain.invalid> Message-ID: Hi, I encountered the same problem just few days before. I'm using Glade3-win32. Don't use Glade to set the default item of Combobox. It's a bug as far as I know. Use "hard code" instead. gtk_combo_box_set_active(GTK_COMBO_BOX(cmb1), 0); Hope it helps. Regards, Frank -----Original Message----- From: glade-users-bounces at lists.ximian.com [mailto:glade-users-bounces at lists.ximian.com] On Behalf Of Marco T?lio Gontijo e Silva Sent: Wednesday, June 25, 2008 6:02 AM To: glade-users at ximian.com Subject: [Glade-users] Problem with ComboBox Hello there. I don't know if this is a known issue, but it seems strange to me that when I change the Active item value in the proprierties of a Combo Box in Glade 3, from -1 to any value, like 0 or 1, I have this message as soon as the glade file is loaded: (test:5012): Gtk-CRITICAL **: gtk_tree_row_reference_new: assertion `GTK_IS_TREE_MODEL (model)' failed (test:5012): Gtk-CRITICAL **: gtk_cell_view_set_displayed_row: assertion `GTK_IS_TREE_MODEL (cell_view->priv->model)' failed And besides it, the Active Item keeps empty, and is not the first or second on the item list. I'm using Glade-3 3.4.5 with libglade 2.6.2 in debian lenny. The glade file is in: http://marcotmarcot.googlepages.com/sound.glade . Please CC any answer about this to me. Thanks. -- Marco T?lio Gontijo e Silva P?gina: http://marcotmarcot.googlepages.com/ Blog: http://marcotmarcot.wordpress.com/ Correio: marcot at riseup.net XMPP: marcot at jabber.org IRC: marcot at irc.freenode.net Telefone: 25151920 Celular: 98116720 Endere?o: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil _______________________________________________ Glade-users maillist - Glade-users at lists.ximian.com http://lists.ximian.com/mailman/listinfo/glade-users From marcot at riseup.net Wed Jun 25 22:19:30 2008 From: marcot at riseup.net (Marco =?ISO-8859-1?Q?T=FAlio?= Gontijo e Silva) Date: Wed, 25 Jun 2008 23:19:30 -0300 Subject: [Glade-users] Some problems with Glade Message-ID: <1214446770.2845.9.camel@quindinho.domain.invalid> Hello. I'm having some other problems with Glade: In a message dialog, when I click in the ? of the Image field, I get a tree of Objects. I don't understand what this means, and I don't know where to get documentation from it. Is there a place where each field of each glade component is documented? The other question is about Destroy with Parent. How is the Parent of a Window or Dialog defined? I'm trying to do it with gtk_widget_reparent, but this seems to be used only with Container, and I'm getting the error: (:3201): Gtk-CRITICAL **: gtk_widget_reparent: assertion `widget->parent != NULL' failed Thanks. -- Marco T?lio Gontijo e Silva P?gina: http://marcotmarcot.googlepages.com/ Blog: http://marcotmarcot.wordpress.com/ Correio: marcot at riseup.net XMPP: marcot at jabber.org IRC: marcot at irc.freenode.net Telefone: 25151920 Celular: 98116720 Endere?o: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil From m at dmdt.org Sun Jun 29 10:44:37 2008 From: m at dmdt.org (M Murphy) Date: Sun, 29 Jun 2008 15:44:37 +0100 Subject: [Glade-users] Virtual fingers Message-ID: <20080629154437.af3d5ea3.m@dmdt.org> Dear All, Given that every button on a GTK interface has a name, can external programs access those buttons? - So, suppose that my good friend Johnny has written a program with a GTK interface and that I'm running a copy. - Can I write a quick & simmple bash script that presses a given button on the gui? I imagine that the process would go something like this: - Find out the name of the button I want to press. I can look in the source code for this and maybe even arrange so that if I right click on any GTK button, one of the options presented in the menu gives me the name of the button. - Within the bash script: - Run ps to find the process ID of the application. - Ask X nicely to tell me all the windows owned by that PID. (How do I do this?) - Now I have enough information to identify the button to by bash script. Now I just need a way of saying .click! The scripting language is negotiable - bash is just an example. Many thanks, Max From Calum.Benson at Sun.COM Mon Jun 30 07:35:07 2008 From: Calum.Benson at Sun.COM (Calum Benson) Date: Mon, 30 Jun 2008 12:35:07 +0100 Subject: [Glade-users] Virtual fingers In-Reply-To: <20080629154437.af3d5ea3.m@dmdt.org> References: <20080629154437.af3d5ea3.m@dmdt.org> Message-ID: On 29 Jun 2008, at 15:44, M Murphy wrote: > > Dear All, > > Given that every button on a GTK interface has a name, can external > programs access those buttons? In principle, yes; this is how the GNOME assistive technologies and testing tools like Dogtail work, through the atk interfaces[1]. I think python is going to be your best bet for a scripting language-- it has good atk bindings, and both Orca[2] (the GNOME screenreader) and Accerciser[3] (the a11y testing tool) use them to interrogate running GNOME apps. I guess Accerciser would be better to look at for learning purposes, as one of its main jobs is to interrogate the widget structure of running applications, and to send events to those widgets. Cheeri, Calum. [1] http://library.gnome.org/devel/atk/unstable/ [2] http://live.gnome.org/Orca [3] http://live.gnome.org/Accerciser -- CALUM BENSON, Usability Engineer Sun Microsystems Ireland mailto:calum.benson at sun.com GNOME Desktop Team http://blogs.sun.com/calum +353 1 819 9771 Any opinions are personal and not necessarily those of Sun Microsystems