Re: [Bulk] [trinity-devel] Re: kbluetooth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2016/12/21 08:19 AM, deloptes wrote:
> I am afraid I am missing something like python dbus.mainloop.tqt
> for the kblueplugd
> 
> from   python_tqt import qt
> import dbus
> import dbus.mainloop.qt <<<<<<< HERE
> import distutils.spawn
> 
> kbtcmd    = [ 'kbluetooth' ]
> quitprogs = [ 'kdebluetooth', 'kbluemon', 'kinputwizard' ]  # FIXME: quit
> kbluelock too?
> 
> 
> app = qt.TQApplication(sys.argv)
> if app.isSessionRestored():
>         sys.exit(1)
> 
> dbus.mainloop.qt.DBusQtMainLoop(set_as_default=True) <<<<<<< HERE
> bus = dbus.SystemBus()
> 
> try:
>         manager =
> dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
> except:
>         print "Unable to connect to bluez."
>         sys.exit(1)
> 

Hi Emanoil,
looking at packages available in Debian/Stretch, I see there are these packages:
- python-dbus.mainloop.pyqt5    (for python 2)
- python3-dbus.mainloop.pyqt5   (for python 3)
- python3-dbus.mainloop.qt      (fpr python 3 - qt4)

These packages supply support for the Qt application main loop in python. I guess we need something similar for python 2
and Tqt3, which is currently not available AFAIK.
I guess/hope (I could be wrong of course) that starting from the source code of the existing packages you could come up
with something like that without too many modifications. If you do so, we will be very happy to add such package for
R14.1 ;-)

Cheers
  Michele


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux