def add_switcher(self):
     if self.device_tree == None:
         self.device_tree = TreeView([DeviceToggleItem(self.wireless_devices, 0)])
         self.device_tree.set_expand_column(1)
         self.content_box.pack_start(self.device_tree, False, True)
         self.content_box.reorder_child(self.device_tree, 0)
         net_manager.emit_wifi_switch(0)
 def add_switcher(self):
     if self.device_tree == None:
         self.device_tree = TreeView(
             [DeviceToggleItem(self.wireless_devices, 0)])
         self.device_tree.set_expand_column(1)
         self.content_box.pack_start(self.device_tree, False, True)
         self.content_box.reorder_child(self.device_tree, 0)
         net_manager.emit_wifi_switch(0)
    def single_click(self, column, offset_x, offset_y):
        if column == 2:
            self.round_plus()
        elif column == 0:
            self.round_minus()

        net_manager.emit_wifi_switch(self.index - 1)
        self.redraw()
    def single_click(self, column, x, y):
        if column == 3:
            self.round_plus()
        elif column == 2:
            self.round_minus()

        self.device_name = self.devices[self.index - 1].get_device_desc()
        net_manager.emit_wifi_switch(self.index - 1)
        self.redraw()
Example #5
0
    def single_click(self, column, x, y):
        if column == 3:
            self.round_plus()
        elif column == 2:
            self.round_minus()

        self.device_name = self.devices[self.index - 1].get_device_desc()
        net_manager.emit_wifi_switch(self.index - 1)
        self.redraw()
 def add_switcher(self):
     if not hasattr(self, "device_tree") or not self.device_tree:
         self.device_tree = TreeView([DeviceItem()], mask_bound_height=0)
         self.device_tree.set_expand_column(1)
         self.wireless_box.pack_start(self.device_tree, False, False)
         self.wireless_box.reorder_child(
             self.wireless_box.get_children()[-2],
             len(self.wireless_box.get_children()))
         tray_log.debug(self.wireless_box.get_children())
         net_manager.emit_wifi_switch(0)