LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2014, 08:30 AM   #1
cacilhas
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Gtk equivalent to addToJavaScriptWindowObject


Hi folks,

I’m migrating a PySide Qt/Webkit application to PyGtk Webkit application, but I have a problem on the window-object-cleared callback.

I need to add my Python object to window object as listener. Using Qt, I did: self.addToJavaScriptWindowObject(listener_name, listener), but I cannot found the Gtk equivalent.

I realize the window object is passed as parameter to the callback, but as a gpointer. I just don’t know what to do with it.

How can I add my listener to the window object using pygtk?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Python/Gtk3: dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.OK) RockDoctor Programming 2 08-12-2014 07:37 AM
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
gtk-qt-engine causes white border on gtk tray icons tdtooke Linux - Desktop 0 08-08-2008 12:25 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
k3b equivalent for GNOME/GTK+?? servnov Linux - Software 8 07-15-2005 08:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration