Codebase list mirage / 0fdd50f
Change to gi imports Thomas Ross 4 years ago
1 changed file(s) with 7 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
1919 along with this program. If not, see <http://www.gnu.org/licenses/>.
2020 """
2121
22 import pygtk
23
24 pygtk.require("2.0")
25 import gtk
22 import gi
23
24
25 gi.require_version("Gtk", "3.0")
26 from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib
2627 import os, sys, getopt, configparser, string, gc
27 import random, urllib.request, gobject, gettext, locale
28 import random, urllib.request, gettext, locale
2829 import stat, time, subprocess, shutil, filecmp
2930 import tempfile, socket, threading
3031
5354 print("xmouse.so module not found, some screenshot capabilities will be disabled.")
5455
5556 try:
56 import gconf
57 from gi.repository import GConf
5758 except:
5859 pass
59
60 if gtk.gtk_version < (2, 10, 0):
61 sys.stderr.write("Mirage requires GTK+ 2.10.0 or newer..\n")
62 sys.exit(1)
63 if gtk.pygtk_version < (2, 12, 0):
64 sys.stderr.write("Mirage requires PyGTK 2.12.0 or newer.\n")
65 sys.exit(1)
6660
6761
6862 def valid_int(inputstring):