Exemplo n.º 1
0
 def __init__(self,menu,root=None):
     """ Sets up and populates our gtk.TreeStore """
     TcloudObject.__init__(self)
     self.tree_store = gtk.TreeStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING, gobject.TYPE_STRING)
     self.root = self.init_root(root)
     self.menu = menu
     self.first_row  = None
     self.init_menu(self.menu)
     return
Exemplo n.º 2
0
 def __init__(self, widget, host, port, conf):
     TcloudObject.__init__(self)
     self.disp_console = widget
     self.session = None
     self.conf = conf
     self.display = None
     self.main_channel = None
     self.audio = None
     self.display_channel = None
     self.connected = False
     self.usbManager = _spice.UsbDeviceManager()
     self.host = host
     self.port = port
Exemplo n.º 3
0
    def __init__(self, subsystems=["usb"]):
        '''
        Create a new DeviceFinder and attach to the udev system to 
        listen for events.
        '''
        TcloudObject.__init__(self)

        self.client = gudev.Client(subsystems)
        self.subsystems = subsystems
        self.devices_tree = {}
        self.devices_list = []

        self.client.connect('uevent', self.uevent)
Exemplo n.º 4
0
 def __init__(self,widget,host,port,conf):
     TcloudObject.__init__(self)
     self.disp_console = widget
     self.session = None
     self.conf = conf
     self.display = None
     self.main_channel = None
     self.audio = None
     self.display_channel = None
     self.connected = False
     self.usbManager = _spice.UsbDeviceManager()
     self.host= host
     self.port = port
Exemplo n.º 5
0
    def __init__(self, root=None, conf=None):
        """ Path is where we wan the tree initialized """

        TcloudObject.__init__(self)
        self.conf = conf
        self.show_hidden = False
        self.show_only_dirs = True
        self.show_rules_hint = True

        self.root = '/'
        if root != None:
            self.check_path(root)

        self.view, self.scrolled = self.make_view()
        self.create_new()
        self.create_popup()
Exemplo n.º 6
0
 def __init__(self):
     TcloudObject.__init__(self)
     self.base = basepath