~gnome-terminator/terminator/gtk3

« back to all changes in this revision

Viewing changes to terminatorlib/window.py

  • Committer: Stephen Boddy
  • Date: 2016-11-25 01:29:55 UTC
  • Revision ID: stephen.j.boddy@gmail.com-20161125012955-awhqfmzdpbzjm2r8
Fix terminator not working with default python3 by forcing python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
 
1
#!/usr/bin/env python2
2
2
# Terminator by Chris Jones <cmsj@tenshu.net>
3
3
# GPL v2 only
4
4
"""window.py - class for the main Terminator window"""
8
8
import uuid
9
9
import gi
10
10
from gi.repository import GObject
11
 
from gi.repository import Gtk, Gdk
 
11
from gi.repository import Gtk, Gdk, GdkX11
12
12
 
13
13
from util import dbg, err, make_uuid, display_manager
14
14
import util
308
308
                t = GdkX11.x11_get_server_time(self.window)
309
309
            except AttributeError:
310
310
                t = 0
 
311
            print t
 
312
            print self
 
313
            print self.window
311
314
            self.window.focus(t)
312
315
        else:
313
316
            self.position = self.get_position()