How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Niranjan Rao
Greetings, I realize that this question is specific to python and webkit and not a general Gtk question. I have tried many other avenues including stackoverflow question and sending mails to various other lists. So far no luck. Since there are many Gtk experts here, I am hoping someone might be

Re: Invisible GtkImage

2013-07-02 Thread Kip Warner
On Thu, 2013-06-27 at 16:01 -0700, Andrew Potter wrote: Please show the code that deals with the TextView and ScrolledWindow. The clipping is almost certainly due to setting the minimum size on either the TextView, or the GtkBox the two are contained in. I have example GtkAssistant code at the

Re: How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Simon Feltman
Hi, On Mon, Jul 1, 2013 at 11:48 PM, Niranjan Rao nhr...@gmail.com wrote: I need to perform some DOM operations once the document is loaded. Webkit DOMDocument provides evaluate method which can allow me to reach to element using xpath, if it works. The parameter DOMXPathResult of the

Re: How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Niranjan Rao
Thanks for the information. I had came across the webkit bug you mentioned. And yes, I had tried creating empty WebKit.DOMXPathResult object and passing it. Did not work. As much as I hate this, I see only following options for me now. As much as I would have loved it, only python based

get a blank window after recall set_visible(true)

2013-07-02 Thread Victor Aurélio
Why when I call window.set_visible(true); a second time is shown a blank window to me ? I add some widgets to a Box and then add the box to the window: hscales.show_all(); scale_window.add(hscales); now in a callback I call set_visible: scale_window.set_visible(true); In the first time after

Re: How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Simon Feltman
On Tue, Jul 2, 2013 at 10:35 AM, Niranjan Rao nhr...@gmail.com wrote: And yes, I had tried creating empty WebKit.DOMXPathResult object and passing it. Did not work. It would be helpful to know the details of what didn't work. Code examples of what you have tried, or steps to reproduce the

Re: How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Niranjan Rao
Simon, Thanks for the pointer. I noticed that I made a stupid mistake and was sending document as a first parameter. Your example opened my eyes and now it looks like its running ok. Thanks, Niranjan On 07/02/2013 02:37 PM, Simon Feltman wrote: On Tue, Jul 2, 2013 at 10:35 AM, Niranjan

Re: How to call WebKit.DOMDocument.evaluate function in python

2013-07-02 Thread Simon Feltman
Ah, that's good news. Happens to me sometimes as well when trying to translate C docs to Python :) Sometimes Python's help can be your friend help(WebKit.DOMDocument.evaluate) On Tue, Jul 2, 2013 at 5:12 PM, Niranjan Rao nhr...@gmail.com wrote: Simon, Thanks for the pointer. I noticed that