Пример #1
0
        self.window.set_icon(icon)
        
        vbox = xml.get_widget('treeview_vbox')

        devicelist = DeviceList()
        vbox.pack_start(devicelist, False, False)
        self.devicelist = devicelist


    def reset(self):
        self.devicelist.reset()


    def on_close_clicked(self, widget):
        self.finalize = True
        gtk.main_quit()



if __name__ == '__main__':
    try:
        import defs
        setup_gettext('hermes-hardware', defs.DATA_DIR)
    except ImportError:
        print 'WARNING: Running uninstalled, no gettext support'

    controller = Controller()
    while not controller.finalize:
        controller.reset()
        gtk.main()
Пример #2
0
#
#Detección de Hardware de Guadalinex 2005  is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with Foobar; if not, write to the Free Software
#Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

import os.path

from utils.pkginstaller import PkgInstaller
from deviceactor import PkgDeviceActor
from gettext import gettext as _
from hermes_hardware import setup_gettext

setup_gettext('hermes-hardware', '/usr/share')

class Actor(PkgDeviceActor):

    __required__ = {'info.category':'bluetooth_hci'}

    __icon_path__  = os.path.abspath('actors/img/bluetooth.png')
    __iconoff_path__ = os.path.abspath('actors/img/bluetoothoff.png')

    __device_title__ = 'BLUETOOTH'
    __device_conn_description__ = _('Bluetooth device connected')
    __device_disconn_description__ = _('Bluetooth device disconnected')

Пример #3
0
        self.finalize = False

        icon = gtk.gdk.pixbuf_new_from_file("/usr/share/hermes/img/logo.svg")
        self.window.set_icon(icon)

        vbox = xml.get_widget('treeview_vbox')

        devicelist = DeviceList()
        vbox.pack_start(devicelist, False, False)
        self.devicelist = devicelist

    def reset(self):
        self.devicelist.reset()

    def on_close_clicked(self, widget):
        self.finalize = True
        gtk.main_quit()


if __name__ == '__main__':
    try:
        import defs
        setup_gettext('hermes-hardware', defs.DATA_DIR)
    except ImportError:
        print 'WARNING: Running uninstalled, no gettext support'

    controller = Controller()
    while not controller.finalize:
        controller.reset()
        gtk.main()
Пример #4
0
        icon = gtk.gdk.pixbuf_new_from_file("/usr/share/hermes/img/logo.svg")
        self.window.set_icon(icon)

        vbox = xml.get_widget("treeview_vbox")

        devicelist = DeviceList()
        vbox.pack_start(devicelist, False, False)
        self.devicelist = devicelist

    def reset(self):
        self.devicelist.reset()

    def on_close_clicked(self, widget):
        self.finalize = True
        gtk.main_quit()


if __name__ == "__main__":
    try:
        import defs

        setup_gettext("hermes-hardware", defs.DATA_DIR)
    except ImportError:
        print "WARNING: Running uninstalled, no gettext support"

    controller = Controller()
    while not controller.finalize:
        controller.reset()
        gtk.main()