Exemple #1
0
 def __init__(self, wid, w, h, has_alpha):
     WindowBackingBase.__init__(self, wid, getQtScheduler().idle_add)
Exemple #2
0
 def __init__(self, wid, w, h, has_alpha):
     WindowBackingBase.__init__(self, wid, getQtScheduler().idle_add)
Exemple #3
0
 def __init__(self):
     s = getQtScheduler()
     self.idle_add = s.idle_add
     self.timeout_add = s.timeout_add
     self.QtInit()
     UIXpraClient.__init__(self)
Exemple #4
0
 def get_scheduler(self):
     return getQtScheduler()
Exemple #5
0
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

import sys
import os
from PyQt4 import QtCore, QtGui             #@UnresolvedImport

from xpra.log import Logger
log = Logger()

from xpra.client.ui_client_base import UIXpraClient
from xpra.net.protocol import set_scheduler
from xpra.client.qt4.qt_keyboard_helper import QtKeyboardHelper
from xpra.client.qt4.scheduler import getQtScheduler
from xpra.client.qt4.client_window import ClientWindow
set_scheduler(getQtScheduler())

sys.modules['gtk']=None
sys.modules['pygtk']=None
sys.modules['gi']=None
sys.modules['gobject']=None


class XpraClient(UIXpraClient):

    ClientWindowClass = ClientWindow

    def __init__(self):
        s = getQtScheduler()
        self.idle_add = s.idle_add
        self.timeout_add = s.timeout_add