Bug#723066: lmt gui compatibilty with pyside

2014-09-18 Thread Ritesh Raj Sarraf

Control: severity -1 wishlist

On Monday 16 September 2013 07:23 AM, Gianluigi Tiesi wrote:

I use pyside instead pyqt4, attached patch makes the gui work
also when the system has pyside and not pyqt4

you may add pyside as alternative in recommends


It is not as simple as just an import. I tried and there were other 
issues. Hence marking this as a wishlist.


--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
Necessity is the mother of invention.



Bug#723066: lmt gui compatibilty with pyside

2013-09-15 Thread Gianluigi Tiesi
Package: laptop-mode-tools
Severity: wishlist
Tags: patch

I use pyside instead pyqt4, attached patch makes the gui work
also when the system has pyside and not pyqt4

you may add pyside as alternative in recommends

Regards


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
--- lmt-config-gui.orig	2013-09-15 19:05:11.0 +0200
+++ lmt-config-gui	2013-09-16 03:29:11.125235320 +0200
@@ -1,6 +1,9 @@
 #!/usr/bin/env python
 
-from PyQt4 import QtGui, QtCore
+try:
+from PyQt4 import QtGui, QtCore
+except ImportError:
+from PySide import QtGui, QtCore
 
 import os, sys, shutil