summaryrefslogtreecommitdiff
path: root/invest-applet/invest/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'invest-applet/invest/help.py')
-rw-r--r--invest-applet/invest/help.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/invest-applet/invest/help.py b/invest-applet/invest/help.py
index 7dfaabf0..a283a230 100644
--- a/invest-applet/invest/help.py
+++ b/invest-applet/invest/help.py
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-
-import gtk, gtk.gdk
+
+import gi
+gi.require_version("Gtk", "2.0")
+from gi.repository import Gtk
+from gi.repository import Gdk
def show_help():
- gtk.show_uri(None, "ghelp:invest-applet", gtk.gdk.CURRENT_TIME)
+ Gtk.show_uri(None, "ghelp:invest-applet", Gdk.CURRENT_TIME)
def show_help_section(id):
- gtk.show_uri(None, "ghelp:invest-applet?%s" % id, gtk.gdk.CURRENT_TIME)
+ Gtk.show_uri(None, "ghelp:invest-applet?%s" % id, Gdk.CURRENT_TIME)